/**
 * Tool Registry — Spawn-time integration
 *
 * At agent spawn time:
 * 1. Load tool registry and policy profile
 * 2. Filter tools by policy
 * 3. Generate mcp-config.json for MCP servers (passed to Claude Code via --mcp-config)
 * 4. Build tools section for agent prompt (CLI tools + MCP descriptions)
 */
import type { McpServerConfig, CliToolConfig } from './types.js';
interface McpConfigEntry {
    url?: string;
    command?: string;
    args?: string[];
    env?: Record<string, string>;
}
interface McpConfigJson {
    mcpServers: Record<string, McpConfigEntry>;
}
/**
 * Generate mcp-config.json content from a list of MCP servers.
 * This JSON is passed to Claude Code via the --mcp-config flag.
 */
export declare function generateMcpConfig(servers: McpServerConfig[]): McpConfigJson;
/**
 * Write mcp-config.json to a temporary location and return the path.
 * Returns null if there are no MCP servers to configure.
 */
export declare function writeMcpConfigFile(servers: McpServerConfig[], outputDir: string): string | null;
/**
 * Build the AVAILABLE TOOLS section for agent prompts.
 * Describes MCP servers and CLI tools the agent has access to.
 */
export declare function buildToolsPromptSection(mcpServers: McpServerConfig[], cliTools: CliToolConfig[]): string;
export interface SpawnToolsResult {
    mcpConfigPath: string | null;
    promptSection: string;
    mcpServers: McpServerConfig[];
    cliTools: CliToolConfig[];
}
/**
 * Resolve tools for an agent spawn.
 * Loads registry, applies policy, generates MCP config, builds prompt section.
 *
 * @param hqPath - HQ root path
 * @param policyName - Optional policy profile name (e.g., "code-agent")
 * @param outputDir - Directory for writing mcp-config.json
 */
export declare function resolveToolsForSpawn(hqPath: string, policyName: string | undefined, outputDir: string): SpawnToolsResult;
export {};
