import type { IncomingMessage } from 'http';
import type { Duplex } from 'stream';
export declare const wsClients: Set<Duplex>;
export declare function handleWebSocketUpgrade(req: IncomingMessage, socket: Duplex, _head: Buffer): void;
/**
 * Parse WebSocket frame (simplified)
 * Returns { opcode, payload } or null
 */
export declare function parseWebSocketFrame(buffer: Buffer): {
    opcode: number;
    payload: string;
} | null;
/**
 * Create WebSocket frame
 */
export declare function createWebSocketFrame(data: unknown): Buffer;
/**
 * Broadcast message to all connected WebSocket clients
 */
export declare function broadcastToClients(data: unknown): void;
/**
 * Extract session ID from file path
 */
export declare function extractSessionIdFromPath(filePath: string): string | null;
//# sourceMappingURL=websocket.d.ts.map