import { LocalStorageCache } from '../types/storage/LocalStorageCache'; /** * Creates a TTL-bounded localStorage cache for a single JSON-serializable value. * * Generalizes the per-widget option caches (e.g. the alerts channel-options * cache): entries older than `ttlMs` read as null, all access is guarded so it * never throws (storage disabled, quota, SSR), and malformed entries are * treated as a miss. The value is wrapped with a timestamp under `key`. * @template T The cached value type. * @param {string} key - The localStorage key. * @param {number} ttlMs - Time-to-live in milliseconds. * @returns {LocalStorageCache} The cache handle (read/write/clear). */ export declare const createLocalStorageCache: (key: string, ttlMs: number) => LocalStorageCache; //# sourceMappingURL=createLocalStorageCache.d.ts.map