/// import { TransformOptions, Transform } from 'stream'; import { IStreamDuplex, IStreamWritable, IStreamReadable } from '../streams/istream'; export declare function simpleCrossStream(): { ar: IStreamReadable; aw: IStreamWritable; br: IStreamReadable; bw: IStreamWritable; a: IStreamDuplex; b: IStreamDuplex; }; /** * Debug output of stream. * eg: * * ```ts const readable = socket.pipe(decodeStream).pipe( debugStream(chunk => { console.log('remote read', chunk) }) ); const streamTransport = new StreamTransport(readable, writable, undefined, 'remote'); * ``` */ export declare function debugStream(onChunk: (chunk: Chunk, encoding: string) => void | Promise, opts?: TransformOptions): Transform;