import { CacheConfig } from './types'; /** * Data File Cache Manager using the Browser Cache API for storing various data files * Supports caching of binary files (point clouds, CAD models), images (360 images), and JSON data * * @example * ```typescript * // Default: Cache forever, browser manages eviction * const cache = new DataFileCacheManager({ * cacheName: 'reveal-3d-resources-v1' * }); * * // Optional: Add time-based expiration * const cache = new DataFileCacheManager({ * cacheName: 'reveal-3d-resources-v1', * maxAge: 7 * 24 * 60 * 60 * 1000 // Expire after 7 days * }); * * // Store a response * await cache.storeResponse(url, response); * * // Retrieve cached response, returns undefined if expired or not found * const cachedResponse = await cache.getCachedResponse(url); * ``` */ export declare class DataFileCacheManager { private readonly DEFAULT_CONFIG; private readonly _config; private readonly _caches; private readonly _lastAccessed; get cacheConfig(): CacheConfig; constructor(config?: Partial, cacheStorage?: CacheStorage); /** * Check if a URL is cached and not expired */ has(url: string): Promise; /** * Clear all cached entries */ clear(): Promise; /** * Get a cached response if it exists and is not expired */ getCachedResponse(url: string): Promise; /** * Store data in cache. On quota exceeded, evicts LRU entries and retries once. */ storeResponse(url: string, data: ArrayBuffer, contentType?: string): Promise; private putInCache; private evictLeastRecentlyUsedEntries; }