import type { Agent } from '../agent'; import type { Handoff } from '../handoff'; import type { RunContext } from '../runContext'; import { type FunctionTool, type HostedMCPTool, type Tool } from '../tool'; import type * as protocol from '../types/protocol'; import { type FunctionToolLookupKey } from '../toolIdentity'; export declare function isDeferredHostedMcpTool(tool: Tool): tool is HostedMCPTool; export declare function addLoadedToolNamesFromToolSearchOutput(toolSearchOutput: protocol.ToolSearchOutputItem, loadedToolNames: Set): void; /** Snapshots namespace discovery before configuration changes can alter its meaning. */ export declare function recordHostedMcpDiscovery(output: protocol.ToolSearchOutputItem, tools: Tool[]): protocol.ToolSearchOutputItem; /** Matches explicit MCP discovery or an unambiguous hosted namespace result. */ export declare function toolSearchOutputLoadsHostedMcpTool(output: protocol.ToolSearchOutputItem, serverLabel: string, toolName: unknown): boolean; export declare function addHostedMcpToolsFromToolSearchOutput(toolSearchOutput: protocol.ToolSearchOutputItem, hostedMcpToolsByServerLabel: Map>, options?: { preserveExistingServerLabels?: Set; }): void; export declare function validateClientToolSearchSupport(tools: Tool[]): void; export declare function resolveBuiltInClientToolSearchTools(paths: string[], tools: Tool[]): Tool[]; export declare function createClientToolSearchOutputFromTools(toolSearchCall: protocol.ToolSearchCallItem, tools: Tool[]): protocol.ToolSearchOutputItem; export declare function createBuiltInClientToolSearchOutput(toolSearchCall: protocol.ToolSearchCallItem, tools: Tool[]): protocol.ToolSearchOutputItem; export declare function executeCustomClientToolSearch(args: { agent: Agent; runContext: RunContext; toolSearchCall: protocol.ToolSearchCallItem; toolSearchTool: Tool; tools: Tool[]; }): Promise<{ output: protocol.ToolSearchOutputItem; runtimeTools: Tool[]; callbackRuntimeTools: Tool[]; }>; export declare function filterEnabledToolSearchRuntimeTools(args: { agent: Agent; runContext: RunContext; runtimeTools: Tool[]; }): Promise[]>; export declare function registerRuntimeToolSearchTools(args: { availableTools: Tool[]; functionMap: Map>; handoffMap: Map>; mcpToolMap: Map; replaceableRuntimeToolKeys?: Set; replacedRuntimeTools?: Tool[]; runtimeTools: Tool[]; }): Tool[]; export declare function getClientToolSearchHelper(tools: Tool[]): Tool | undefined;