/// /// import { Duplex } from "stream"; export declare class IOStream extends Duplex { private impl; private pending; private cancellable; constructor(impl: any); _destroy(error: Error | null, callback: (error: Error | null) => void): Promise; _read(size: number): void; _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; private track; }