import type { OpfsSyncAccessHandle } from '../engine/file-system-storage.js'; import type { EngineModule } from './engine-module.js'; export interface SyncAccessFile { name: string; handle: OpfsSyncAccessHandle; size: number; } export interface SyncAccessMountOptions { files: SyncAccessFile[]; } /** * Emscripten FS provider backed by OPFS sync access handles. * * Each mounted file maps to one open OpfsSyncAccessHandle. `read` calls * `handle.read(view, { at })` directly into a Uint8Array view of the wasm * heap — one copy from OPFS storage into wasm linear memory, no intermediate * ArrayBuffer in JS heap. Replaces the prior WORKERFS path which paid two * copies (FileReaderSync → ArrayBuffer → HEAPU8.set) per read. */ export declare function createSyncAccessHandleFS(module: EngineModule): unknown;