import { WebSocket } from 'ws'; import type { Server } from 'http'; export type WSMessage = { type: string; [k: string]: unknown; }; export type WsServer = { broadcast: (message: WSMessage) => void; onConnect: (callback: (ws: WebSocket) => void) => void; freeze: () => void; unfreeze: () => void; }; export declare function attachWsServer(server: Server): WsServer; //# sourceMappingURL=ws.d.ts.map