/** Parse SSE response format (lines starting with "data: ") */ export declare function parseSSE(text: string): unknown; /** JSON-RPC 2.0 response structure */ export interface JsonRpcResponse { jsonrpc: "2.0"; id: string | number; result?: T; error?: { code: number; message: string; data?: unknown; }; } /** * Call an MCP server with JSON-RPC 2.0 over HTTPS. * * @param url - Full MCP server URL (including any query parameters) * @param method - JSON-RPC method name (e.g., "tools/list", "tools/call") * @param params - Method parameters * @returns Parsed JSON-RPC response */ export declare function callMCP(url: string, method: string, params?: Record): Promise>;