export interface JsonRpcMessage { jsonrpc?: string; id?: number | string | null; method?: string; params?: Record; result?: unknown; } export interface JsonRpcResponse { jsonrpc: '2.0'; id: number | string | null; result?: unknown; error?: { code: number; message: string; }; } /** * Handle one JSON-RPC message. Returns the response, or null when the message * needs none (notifications, client responses). */ export declare function handleMcpMessage(msg: unknown): Promise;