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