import type { MCPTransportInterface, MCPRequest, MCPResponse, MCPNotification } from './types'; /** * MCP stdio transport implementation * Communicates with MCP servers via stdin/stdout */ export declare class StdioTransport implements MCPTransportInterface { private process?; private pendingRequests; private notificationHandlers; private serverRequestHandlers; private requestIdCounter; private command; private args; private env?; private envAllowlist?; private connected; private boundHandlers?; constructor(command: string, args?: string[], env?: Record, envAllowlist?: string[]); connect(): Promise; disconnect(): Promise; isConnected(): boolean; sendRequest(request: MCPRequest): Promise; sendNotification(notification: MCPNotification): Promise; onNotification(handler: (notification: MCPNotification) => void): void; /** * Remove a notification handler */ offNotification(handler: (notification: MCPNotification) => void): void; /** * Register a handler for server requests */ onServerRequest(method: string, handler: (params: any) => Promise | any): void; private handleMessage; private handleServerRequest; } //# sourceMappingURL=stdio-transport.d.ts.map