import { Buffer } from 'node:buffer'; import { Stream } from 'node:stream'; /** * ChunkStream handles buffered reading and writing of data streams * with support for variable-length chunks and partial reads */ export declare class ChunkStream extends Stream { writable: boolean; constructor(); read(length: number, callback: (data: Buffer) => void): void; write(data: Buffer | string, encoding?: BufferEncoding): boolean; end(data?: Buffer | string, encoding?: BufferEncoding): void; destroySoon: (data?: Buffer | string, encoding?: BufferEncoding) => void; destroy(): void; }