/**
 * Simple MCP client for Pi Agent version.
 * Supports stdio and HTTP transports.
 */
export interface McpServerConfig {
    disabled?: boolean;
    command?: string;
    args?: string[];
    env?: Record<string, string>;
    cwd?: string;
    url?: string;
    transport?: 'stdio' | 'http';
}
export interface McpToolDescriptor {
    name: string;
    description?: string;
    inputSchema?: Record<string, any>;
}
export declare class McpStdioClient {
    private readonly name;
    private readonly config;
    private child;
    private nextId;
    private pending;
    private buffer;
    private connected;
    constructor(name: string, config: McpServerConfig);
    /**
     * Connect to the MCP server
     */
    connect(): Promise<void>;
    /**
     * Disconnect from the MCP server
     */
    disconnect(): Promise<void>;
    /**
     * List tools from the MCP server
     */
    listTools(): Promise<McpToolDescriptor[]>;
    /**
     * Call a tool on the MCP server
     */
    callTool(toolName: string, params: any): Promise<any>;
    /**
     * Check if client is connected
     */
    isConnected(): boolean;
    /**
     * Send a JSON-RPC request and wait for response
     */
    private request;
    /**
     * Process incoming data buffer
     */
    private processBuffer;
    /**
     * Reject all pending requests
     */
    private rejectAllPending;
}
//# sourceMappingURL=client.d.ts.map