import { Duplex } from 'stream'; import type WebSocket from 'ws'; /** * Wraps the given websocket in a normal duplex stream. * @param ws */ export declare function wrap(ws: WebSocket): Stream; declare class Stream extends Duplex { private _ws; constructor(ws: WebSocket); end(...args: any[]): this; _read(): void; _write(chunk: Buffer, encoding: string, callback: (err?: any) => void): void; } export {}; //# sourceMappingURL=WebSocket.d.ts.map