parcoursup/node_modules/memfs/lib/internal/buffer.d.ts
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

16 lines
642 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: readonly any[]): Buffer;
(data: Uint8Array): Buffer;
(obj: {
valueOf(): string | object;
} | {
[Symbol.toPrimitive](hint: "string"): string;
}, byteOffset?: number | undefined, length?: number | undefined): Buffer;
(str: string, encoding?: string | undefined): Buffer;
};
export { Buffer, bufferAllocUnsafe, bufferFrom };