/// import * as streams from 'stream'; export interface ResponseHandlers { withStream(): void; withUpgrade(writable: streams.Writable, readable: streams.Readable): void; send(data: any): void; streamWrite(chunk: Buffer, callback: (error?: (Error | null)) => void): void; streamFinal(callback: (error?: (Error | null)) => void): void; } export declare class Response extends streams.Writable { private readonly handlers; protected _finished: boolean; constructor(handlers: ResponseHandlers); withUpgrade(writable: streams.Writable, readable: streams.Readable): this; withStream(): this; send(data: any): void; _write(chunk: any, encoding: BufferEncoding, callback: (error?: (Error | null)) => void): void; _destroy(error: Error | null, callback: (error?: (Error | null)) => void): void; } //# sourceMappingURL=response.d.ts.map