Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / protobufjs / node_modules / @types / node / buffer.d.ts
1 declare module "buffer" {
2     export const INSPECT_MAX_BYTES: number;
3     export const kMaxLength: number;
4     export const kStringMaxLength: number;
5     export const constants: {
6         MAX_LENGTH: number;
7         MAX_STRING_LENGTH: number;
8     };
9     const BuffType: typeof Buffer;
10
11     export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary";
12
13     export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
14
15     export const SlowBuffer: {
16         /** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */
17         new(size: number): Buffer;
18         prototype: Buffer;
19     };
20
21     export { BuffType as Buffer };
22 }