/** * @octomil/browser — Model cache manager * * Caches downloaded ONNX model binaries using the Cache API (preferred) * or IndexedDB as a fallback. Cache entries are keyed by model URL so * that different model versions naturally invalidate stale entries. */ import type { CacheInfo, CacheStrategy } from "./types.js"; export interface ModelCache { get(key: string): Promise; put(key: string, data: ArrayBuffer): Promise; has(key: string): Promise; remove(key: string): Promise; info(key: string): Promise; } /** * Create a {@link ModelCache} instance for the given strategy. * * Falls back gracefully: * - `"cache-api"` — uses Cache API if available, else IndexedDB, else no-op. * - `"indexeddb"` — uses IndexedDB if available, else no-op. * - `"none"` — always no-op. */ export declare function createModelCache(strategy: CacheStrategy): ModelCache; //# sourceMappingURL=cache.d.ts.map