/// import { Duplex, DuplexOptions } from 'stream'; export default class StreamTransport extends Duplex { readonly send: any; private buffer; private canPush; constructor(send: any, options?: DuplexOptions); push(data: string): boolean; _read(): void; _write(chunk: any, encoding: string, callback: any): void; close(): void; private attemptFlush; }