/** * Exponential-backoff negative caching helper. * * Storage-agnostic: takes a NegativeCacheStore interface that consumers * implement against Dexie (web), the filesystem (CLI), or in-memory (tests). */ /** Record shape stored per negative-cached key. */ export interface NegativeRecord { until: number; attempts: number; } /** Minimal key/value storage interface used by NegativeCacheHelper. */ export interface NegativeCacheStore { get(key: string): Promise; set(key: string, record: NegativeRecord): Promise; delete(key: string): Promise; } /** * Tracks "this thing doesn't exist" outcomes with progressive retry delays: * 15m base, doubling per attempt, capped at 24h. */ export declare class NegativeCacheHelper { private store; constructor(store: NegativeCacheStore); isNegative(key: string): Promise; recordNegative(key: string): Promise; clearNegative(key: string): Promise; } //# sourceMappingURL=negativeCacheHelper.d.ts.map