/** Export/import of the Transformers.js browser cache — the offline-bundle * pattern: drain `caches.open('transformers-cache')` into portable entries, * restore them on another machine so model loads make zero network calls. * (Same contract offline-llm-knowledge-system uses for its embed-cache.) */ export interface CacheEntry { url: string; data: ArrayBuffer; } /** The cache name Transformers.js uses — and the one * offline-llm-knowledge-system restores into. */ export declare const CACHE_NAME = "transformers-cache"; /** Drain the Transformers.js cache into portable entries. * Pass a filter to keep only some URLs (default: everything). */ export declare function exportCache(filter?: (url: string) => boolean): Promise; /** Restore entries into the Transformers.js cache under their original URLs. */ export declare function importCache(entries: CacheEntry[]): Promise; /** Manifest form: {file, url} pairs + binary blobs, ready for zipping * (matches offline-llm-knowledge-system's embed-cache/index.json layout). */ export declare function toManifest(entries: CacheEntry[]): { index: Array<{ file: string; url: string; }>; files: Map; }; export declare function fromManifest(index: Array<{ file: string; url: string; }>, files: Map): CacheEntry[];