import { CliToolDescriptor } from "./cli-surface.js"; //#region src/cli-discovery-cache.d.ts declare const DEFAULT_DISCOVERY_CACHE_TTL_MS = 60000; declare const MAX_DISCOVERY_CACHE_TTL_MS = 300000; declare const MAX_DISCOVERY_CACHE_BYTES = 524288; declare const MAX_DISCOVERY_CACHE_ENTRIES = 64; interface DiscoveryCachePartitionInput { readonly endpoint: string; readonly credentialKind: "static" | "oauth" | "public"; readonly headerName: string; readonly credentialMaterial: string; } interface BrandedCliDiscoveryCache { read(partition: DiscoveryCachePartitionInput): Promise; write(partition: DiscoveryCachePartitionInput, tools: readonly CliToolDescriptor[], ttlMs?: number): Promise; invalidate(partition: DiscoveryCachePartitionInput): Promise; purgeAll(): Promise; } declare function clampDiscoveryCacheTtlMs(ttlMs: number | undefined): number; declare function defaultDiscoveryCacheDirectory(platform?: NodeJS.Platform, env?: Readonly>, home?: string): string; interface FileDiscoveryCacheOptions { readonly directory?: string; readonly defaultTtlMs?: number; readonly now?: () => number; } /** * Bounded, HMAC-salted filesystem cache for `tools/list` discovery metadata. * Stores zero credentials, URLs, issuers, or tool invocation outputs on disk. */ declare class FileDiscoveryCache implements BrandedCliDiscoveryCache { private readonly directory; private readonly defaultTtlMs; private readonly now; constructor(options?: FileDiscoveryCacheOptions); private saltPath; private ensureSalt; private computePartitionId; private entryPath; read(partition: DiscoveryCachePartitionInput): Promise; write(partition: DiscoveryCachePartitionInput, tools: readonly CliToolDescriptor[], ttlMs?: number): Promise; invalidate(partition: DiscoveryCachePartitionInput): Promise; purgeAll(): Promise; private pruneIfNeeded; } //#endregion export { BrandedCliDiscoveryCache, DEFAULT_DISCOVERY_CACHE_TTL_MS, DiscoveryCachePartitionInput, FileDiscoveryCache, FileDiscoveryCacheOptions, MAX_DISCOVERY_CACHE_BYTES, MAX_DISCOVERY_CACHE_ENTRIES, MAX_DISCOVERY_CACHE_TTL_MS, clampDiscoveryCacheTtlMs, defaultDiscoveryCacheDirectory }; //# sourceMappingURL=cli-discovery-cache.d.ts.map