import type { Writable } from "node:stream"; import { AgentBridge } from "./bridge"; import type { JsonRpcRequest, JsonRpcResponse } from "./types"; interface McpServerInfo { name: string; version: string; } interface StdioServerOptions { input?: NodeJS.ReadableStream; output?: Writable; error?: Writable; protocolVersion?: string; serverInfo?: McpServerInfo; } export declare function createMcpRequestHandler(bridge: AgentBridge, options?: { protocolVersion?: string; serverInfo?: McpServerInfo; }): (request: JsonRpcRequest) => Promise; export declare function startMcpStdioServer(bridge: AgentBridge, options?: StdioServerOptions): { close: () => void; }; export {};