11 lines
443 B
TypeScript
11 lines
443 B
TypeScript
|
/// <reference types="node" />
|
||
|
import { Buffer } from 'buffer';
|
||
|
declare const bufferAllocUnsafe: (size: number) => Buffer;
|
||
|
declare const bufferFrom: {
|
||
|
(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number | undefined, length?: number | undefined): Buffer;
|
||
|
(data: any[]): Buffer;
|
||
|
(data: Uint8Array): Buffer;
|
||
|
(str: string, encoding?: string | undefined): Buffer;
|
||
|
};
|
||
|
export { Buffer, bufferAllocUnsafe, bufferFrom };
|