import type { MCPTool } from './mcpShared';
export declare const cachedMcpTools: Record<string, MCPTool[]>;
export declare const cachedMcpToolKeysByServer: Record<string, Set<string>>;
export declare function beginServerToolsCacheListing(serverName: string): {
    isCurrent: () => boolean;
    release: () => void;
};
/**
 * Remove cached tools for the given server so the next lookup fetches fresh data.
 *
 * @param serverName - Name of the MCP server whose cache should be cleared.
 */
export declare function invalidateServerToolsCache(serverName: string): Promise<void>;
