import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import type { McpCapabilitySummary, McpServerConfig, McpSupportedCapabilities, McpTransport } from "./types.js";
export declare class McpClientTimeoutError extends Error {
    readonly name = "McpClientTimeoutError";
    constructor(timeoutMsOrMessage?: number | string);
}
export interface McpClientHandle {
    client: Client;
    capabilities: McpCapabilitySummary;
    /** When false, the server does not implement that list method (method not found). */
    supportedCapabilities: McpSupportedCapabilities;
    transport: McpTransport;
    close(): Promise<void>;
}
export declare function createMcpClient(config: McpServerConfig, opts: {
    timeoutMs: number;
}): Promise<McpClientHandle>;
//# sourceMappingURL=mcp-client.d.ts.map