/** * Storage interface for cached DTS files and negative URL lookups. * * Implemented by: * - TypesDB (web client) — wraps Dexie/IndexedDB * - FsDtsCache (CLI) — wraps the filesystem under ~/.typebulb/cache/dts/ * * The DTS resolver consumes this interface; consumers inject their own * implementation. */ export interface DtsCache { /** Get cached DTS content + source URL for a package. */ getCachedDts(pkg: string): Promise<{ content: string; url?: string; } | undefined>; /** Cache DTS content for a package. */ setCachedDts(pkg: string, content: string, url?: string): Promise; /** Get cached .d.ts file content by URL. */ getCachedFile(url: string): Promise; /** Cache .d.ts file content by URL. */ setCachedFile(url: string, content: string): Promise; /** Check whether a URL is currently in the negative cache. */ isNegative(url: string): Promise; /** Record a negative lookup for a URL (with exponential backoff TTL). */ recordNegative(url: string): Promise; /** Clear a negative lookup for a URL. */ clearNegative(url: string): Promise; } //# sourceMappingURL=cache.d.ts.map