/**
 * MCP server connection and tool discovery.
 *
 * Handles connecting to an MCP server via streamable-http or stdio transport,
 * discovering available tools, and resolving {{env.VAR}} templates in config.
 */
import type { MCPClient } from "./types.js";
/**
 * Connect to an MCP server and return a client for tool discovery and execution.
 *
 * Supports two transport types:
 * - `url` → streamable-http (remote MCP servers like mcp.sanity.io)
 * - `command` → stdio (local MCP server processes)
 */
export declare function connectMCP(serverConfig: Record<string, unknown>): Promise<MCPClient>;
/**
 * Resolve `{{env.VAR}}` templates in config values, recursively.
 */
export declare function resolveEnvTemplates(config: Record<string, unknown>): Record<string, unknown>;
