import { VfsBackend } from '../core/types'; export interface FetchFsOptions { cdnBaseUrl: string; /** Optional callback fired whenever a file is fetched (for cache write-through). */ onFetched?: (tdsPath: string, bytes: Uint8Array) => void | Promise; /** * Integrity gate. Given the TDS path and the fetched bytes, returns false to * reject them — the read then reports a miss rather than handing the engine * bytes a compromised CDN chose. See withIntegrity() in vfs/index.ts. */ verify?: (tdsPath: string, bytes: Uint8Array) => Promise | boolean; } export declare function createFetchFs(opts: FetchFsOptions): VfsBackend; //# sourceMappingURL=fetchfs.d.ts.map