/// import * as stream from "stream"; import { ClientProxy, ClientServerProxy } from "../common/proxy"; import { DuplexProxy, ReadableProxy, WritableProxy } from "../server/stream"; export interface ClientWritableProxy extends WritableProxy, ClientServerProxy { } export declare class Writable extends ClientProxy implements stream.Writable { readonly writable: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; _write(): void; _destroy(): void; _final(): void; pipe(): T; cork(): void; uncork(): void; destroy(): void; setDefaultEncoding(encoding: string): this; write(chunk: any, encoding?: string | ((error?: Error | null) => void), callback?: (error?: Error | null) => void): boolean; end(data?: any | (() => void), encoding?: string | (() => void), callback?: () => void): void; protected handleDisconnect(): void; } export interface ClientReadableProxy extends ReadableProxy, ClientServerProxy { } export declare class Readable extends ClientProxy implements stream.Readable { readonly readable: boolean; readonly readableHighWaterMark: number; readonly readableLength: number; _read(): void; read(): void; _destroy(): void; unpipe(): this; pause(): this; resume(): this; isPaused(): boolean; wrap(): this; push(): boolean; unshift(): void; pipe

(destination: P, options?: { end?: boolean; }): P; [Symbol.asyncIterator](): AsyncIterableIterator; destroy(): void; setEncoding(encoding: string): this; protected handleDisconnect(): void; } export interface ClientDuplexProxy extends DuplexProxy, ClientServerProxy { } export declare class Duplex extends Writable implements stream.Duplex, stream.Readable { private readonly _readable; constructor(proxyPromise: Promise | T); readonly readable: boolean; readonly readableHighWaterMark: number; readonly readableLength: number; _read(): void; read(): void; unpipe(): this; pause(): this; resume(): this; isPaused(): boolean; wrap(): this; push(): boolean; unshift(): void; [Symbol.asyncIterator](): AsyncIterableIterator; setEncoding(encoding: string): this; protected handleDisconnect(): void; }