import type { MCPJsonRpcMessage, MCPStdioTransportConfig, MCPTransport } from '../../types/connector/index.js';
export declare class StdioTransport implements MCPTransport {
    private readonly config;
    private process;
    private messageHandlers;
    private closeHandlers;
    private errorHandlers;
    private connected;
    private buffer;
    private log;
    constructor(config: MCPStdioTransportConfig);
    connect(): Promise<void>;
    close(): Promise<void>;
    send(message: MCPJsonRpcMessage): Promise<void>;
    onMessage(handler: (message: MCPJsonRpcMessage) => void): void;
    onClose(handler: () => void): void;
    onError(handler: (error: Error) => void): void;
    isConnected(): boolean;
    private processBuffer;
}
//# sourceMappingURL=stdio.d.ts.map