import type { McpServerConfig, IMcpTransport } from "../types.js"; export interface TransportOptions { initTimeoutMs?: number; requestTimeoutMs?: number; /** stdio:初始化失败时的重试次数(默认 1) */ initRetries?: number; /** stdio:初始化重试间隔毫秒(默认 3000) */ initRetryDelayMs?: number; } /** * 根据配置创建对应的传输层实例。 */ export declare function createTransport(config: McpServerConfig, options?: TransportOptions): IMcpTransport; export { StdioTransport } from "./stdio.js"; export { SseTransport } from "./sse.js";