/** * Duplex byte stream for testing. * If this stream is connected to another stream, use `push` to send data, and `assertReceivedAsync` to assert the * received data. */ export declare class TestStream { #private; static assertConnectivity(stream1: TestStream, stream2: TestStream, { timeout }?: { timeout?: number; }): Promise; readonly readable: ReadableStream>; readonly writable: WritableStream>; push(data: Uint8Array | string): void; assertReceivedAsync(data: Uint8Array | string, { timeout }?: { timeout?: number; }): Promise; } //# sourceMappingURL=test-stream.d.ts.map