import type { OAuthClientProvider } from '@ai-sdk/mcp';
import { Experimental_StdioMCPTransport as StdioClientTransport } from '@ai-sdk/mcp/mcp-stdio';
import type { McpClientConfig } from './mcp-client';
export type ResolvedMcpTransport = StdioClientTransport | {
    type: 'sse' | 'http';
    url: string;
    headers?: Record<string, string>;
    authProvider?: OAuthClientProvider;
};
export declare function buildMcpTransport(config: McpClientConfig): ResolvedMcpTransport;
export declare function prefixToolNames<TTool>(config: McpClientConfig, tools: Record<string, TTool>): Record<string, TTool>;
export declare function getErrorMessage(error: unknown): string;
