/// import { EventEmitter } from "events"; import * as stream from "stream"; import { ServerProxy } from "../common/proxy"; export declare class WritableProxy extends ServerProxy { constructor(instance: T, bindEvents?: string[], delayedEvents?: string[]); destroy(): Promise; end(data?: any, encoding?: string): Promise; setDefaultEncoding(encoding: string): Promise; write(data: any, encoding?: string): Promise; dispose(): Promise; } /** * This noise is because we can't do multiple extends and we also can't seem to * do `extends WritableProxy implement ReadableProxy` (for `DuplexProxy`). */ export interface CommonReadableProxy extends ServerProxy { pipe

(destination: P, options?: { end?: boolean; }): Promise; setEncoding(encoding: string): Promise; } export declare class ReadableProxy extends ServerProxy implements CommonReadableProxy { constructor(instance: T, bindEvents?: string[]); pipe

(destination: P, options?: { end?: boolean; }): Promise; destroy(): Promise; setEncoding(encoding: string): Promise; dispose(): Promise; } export declare class DuplexProxy extends WritableProxy implements CommonReadableProxy { constructor(stream: T, bindEvents?: string[]); pipe

(destination: P, options?: { end?: boolean; }): Promise; setEncoding(encoding: string): Promise; dispose(): Promise; }