/**
 * STDIO MCP Transport - V2 Native Implementation
 *
 * Direct stdio transport for V2 server, eliminating the need for bridges.
 * Provides native MCP protocol support over stdin/stdout for Claude Code compatibility.
 */
import { EventEmitter } from 'events';
export interface StdioTransportConfig {
    timeout?: number;
    bufferSize?: number;
}
export declare class StdioMcpTransport extends EventEmitter {
    private config;
    private isRunning;
    private rl?;
    private messageBuffer;
    private requestId;
    constructor(config?: StdioTransportConfig);
    /**
     * Start the stdio transport
     */
    start(): Promise<void>;
    /**
     * Setup stdin/stdout handling for MCP protocol
     */
    private setupStdioHandling;
    /**
     * Handle incoming MCP message
     */
    private handleIncomingMessage;
    /**
     * Send response back via stdout
     */
    sendResponse(response: any): void;
    /**
     * Setup error handling
     */
    private setupErrorHandling;
    /**
     * Send notification (no response expected)
     */
    sendNotification(method: string, params?: any): void;
    /**
     * Check if transport is running
     */
    isActive(): boolean;
    /**
     * Stop the transport
     */
    stop(): Promise<void>;
    /**
     * Get transport statistics
     */
    getStats(): any;
}
//# sourceMappingURL=stdio-mcp-transport.d.ts.map