import type { ToolSet } from 'ai';
import { z } from 'zod';
import type { McpManager } from './manager';
/**
 * Validate and convert MCP input schema to Zod schema
 *
 * This function handles the type conversion between MCP tool schemas (which can be
 * JSON Schema or Zod schemas) and the AI SDK's expected Zod schema format.
 *
 * The conversion is necessary because:
 * 1. MCP tools can have either JSON Schema or Zod schemas as inputSchema
 * 2. AI SDK expects Zod schemas for tool validation
 * 3. We need to ensure type safety while handling both formats
 *
 * @param schema - The MCP tool input schema (JSON Schema, Zod schema, or Record)
 * @returns A Zod schema compatible with AI SDK
 */
export declare function adaptMcpSchemaToZod(schema: unknown): z.ZodTypeAny;
/**
 * Create AI SDK tools from MCP server connections
 */
export declare function createMcpTools(mcpManager: McpManager): ToolSet;
/**
 * Get list of MCP tool names for a given server
 */
export declare function getMcpToolNames(mcpManager: McpManager, serverName?: string): string[];
//# sourceMappingURL=tools.d.ts.map