/** * Zoe Server — WebSocket Protocol Handler * * Re-export hub. Setup and teardown functions live here; * types and handlers are split into ws-types.ts and ws-handlers.ts. * * NOTE: Requires the `ws` npm package for Node.js. Install it via: * npm install ws * npm install -D @types/ws * * The module uses a dynamic import so it fails gracefully if `ws` is missing. */ import type { WSServer, WebSocketHandlerContext } from "./ws-types.js"; export type { WebSocketHandlerContext } from "./ws-types.js"; export { getActiveConnectionCount } from "./ws-handlers.js"; /** * Initialize the WebSocket server. * * Uses a dynamic import for the `ws` package. If it's not installed, * logs a warning and returns null. */ export declare function setupWebSocket(server: import("http").Server, ctx: WebSocketHandlerContext): Promise; /** * Close the WebSocket server and all active connections. */ export declare function closeWebSocket(): void;