import type { IncomingMessage, Server as HttpServer } from "node:http";
import type { Duplex } from "node:stream";
export interface BridgeWsHandle {
    close: () => void;
    handleUpgrade: (req: IncomingMessage, socket: Duplex, head: Buffer) => boolean;
}
export declare function attachBridgeWebSocket(httpServer: HttpServer | null, path?: string): BridgeWsHandle;
//# sourceMappingURL=bridge-ws.d.ts.map