import { ModelDataProvider } from '../ModelDataProvider'; import { ModelIdentifier } from '../ModelIdentifier'; import { SignedFileItem } from '../types'; import { CacheConfig, DataFileCacheManager } from '../../../utilities'; /** * Wraps a ModelDataProvider with caching capabilities using the Cache API. * * This provider intercepts getBinaryFile and getJsonFile calls and caches * the responses for faster subsequent access. */ export declare class CachedModelDataProvider implements ModelDataProvider { private readonly baseProvider; private readonly cacheManager; constructor(baseProvider: ModelDataProvider, cacheConfig?: CacheConfig, cacheStorage?: CacheStorage); getBinaryFile(baseUrl: string, fileName: string, abortSignal?: AbortSignal): Promise; getJsonFile(baseUrl: string, fileName: string): Promise; /** * Resolves the Cache API key for a request. For classic requests, baseUrl+fileName is * already stable. For signed URLs (baseUrl empty), the URL itself changes between * issuances (fresh SAS token), so the query string is stripped, leaving the stable * blob path as the key. */ private resolveCacheKey; private fetchWithCache; getFileUrlsForModel(baseUrl: string, modelIdentifier: ModelIdentifier, fileNameFilter?: string): Promise; /** * Get the underlying cache manager for direct cache operations */ getCacheManager(): DataFileCacheManager; /** * Check if a file is cached */ isCached(baseUrl: string, fileName: string): Promise; /** * Clear all cached data */ clearCache(): Promise; private buildSignedFileCacheKey; }