/** * MCP SSE/HTTP 传输:通过 HTTP POST 向远程 URL 发送 JSON-RPC 请求,响应在 response body。 */ import type { McpServerConfigSse } from "../types.js"; import type { JsonRpcRequest, JsonRpcResponse } from "../types.js"; export interface SseTransportOptions { initTimeoutMs?: number; requestTimeoutMs?: number; } export declare class SseTransport { private config; private initTimeoutMs; private requestTimeoutMs; private _connected; constructor(config: McpServerConfigSse, options?: SseTransportOptions); start(): Promise; request(req: JsonRpcRequest, timeoutMs?: number): Promise; close(): Promise; get isConnected(): boolean; }