import type { ServerWebSocket } from "bun"; import type { ValidatorAdapter } from "./router"; import type { MessageHandler, MessageSchemaType, SendFunction, WebSocketData } from "./types"; /** * Handles WebSocket message parsing, validation, and routing. * * ARCHITECTURE: Maps message types (strings) to their handlers. * Only one handler per message type - last registration wins. */ export declare class MessageRouter>> { private readonly validator; private readonly messageHandlers; constructor(validator: ValidatorAdapter); addMessageHandler(schema: Schema, handler: MessageHandler): void; handleMessage(ws: ServerWebSocket, message: string | Buffer, send: SendFunction): void; } //# sourceMappingURL=message.d.ts.map