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 |
|
17 | new(size: number): Buffer;
|
18 | prototype: Buffer;
|
19 | };
|
20 |
|
21 | export { BuffType as Buffer };
|
22 | }
|