/** * A generic Time-To-Live (TTL) cache. * * Each entry is stored alongside an absolute expiry timestamp. On `get`, if the * entry has expired it is lazily removed and `undefined` is returned. * * Designed for auth token caching where entries should auto-expire (e.g. 1 hour). */ export declare class TTLCache { private readonly ttlMs; private readonly cache; constructor(ttlMs: number); /** Retrieve a value by key. Returns `undefined` if missing or expired. */ get(key: string): T | undefined; /** Store a value with a TTL starting from now. */ set(key: string, value: T): void; /** Remove an entry. Returns `true` if the key existed. */ delete(key: string): boolean; /** Remove all entries. */ clear(): void; } //# sourceMappingURL=ttl-cache.d.ts.map