import type { Agent } from '../agent'; import type { RunContext } from '../runContext'; import { type HostedMCPTool, type Tool } from '../tool'; import type * as protocol from '../types/protocol'; export declare function addLoadedToolNamesFromToolSearchOutput(toolSearchOutput: protocol.ToolSearchOutputItem, loadedToolNames: Set): void; 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[]; }>; export declare function getClientToolSearchHelper(tools: Tool[]): Tool | undefined;