/**
 * WebSocket Handler
 *
 * Handles WebSocket connections for real-time streaming and bidirectional communication.
 */
import type { Server as HttpServer } from 'http';
import type { WebSocketServer } from 'ws';
import type { ServerConfig, WebSocketResponse } from '../types.js';
/**
 * Setup WebSocket server
 */
export declare function setupWebSocket(server: HttpServer, config: ServerConfig): Promise<WebSocketServer>;
/**
 * Get active connection count
 */
export declare function getConnectionCount(): number;
/**
 * Get connection stats
 */
export declare function getConnectionStats(): {
    total: number;
    authenticated: number;
    streaming: number;
};
/**
 * Broadcast message to all authenticated connections
 */
export declare function broadcast(message: WebSocketResponse, scopeFilter?: string): void;
/**
 * Close all connections
 */
export declare function closeAllConnections(): void;
