import type { CachedPrompt, CachedResource, CachedTool, McpConfig, McpTool, McpResource, McpPrompt, MetadataCache, ServerCacheEntry, ServerEntry, ToolMetadata, PromptMetadata } from "./types.ts"; import { type ToolPrefix } from "./types.ts"; export type { CachedPrompt, CachedResource, CachedTool, MetadataCache, ServerCacheEntry } from "./types.ts"; export declare function getMetadataCachePath(): string; export declare function loadMetadataCache(): MetadataCache | null; export declare function saveMetadataCache(cache: MetadataCache): void; export declare function computeServerHash(definition: ServerEntry): string; export declare function isServerCacheValid(entry: ServerCacheEntry, definition: ServerEntry, maxAgeMs?: number): boolean; export declare function parseDirectToolSelectors(selectors: string[]): { servers: Set; tools: Map>; }; export declare function getMissingConfiguredDirectToolServers(config: McpConfig, cache: MetadataCache | null, envOverride?: string[]): string[]; export declare function reconstructToolMetadata(serverName: string, entry: ServerCacheEntry, prefix: ToolPrefix, definition: Pick): ToolMetadata[]; export declare function serializeTools(tools: McpTool[]): CachedTool[]; export declare function serializeResources(resources: McpResource[]): CachedResource[]; export declare function serializePrompts(prompts: McpPrompt[]): CachedPrompt[]; export declare function reconstructPromptMetadata(serverName: string, prompts: ReadonlyArray, prefix: ToolPrefix, definition?: Pick): PromptMetadata[];