/** * WASM module loader with cache. Used by the tool runner to load Emscripten * JS glue (and optionally pre-compiled WebAssembly.Module) without re-fetching. */ export interface WasmModuleLoaderOptions { /** Resolve WASM path to full URL for the JS glue (e.g. .mjs). */ getGlueUrl: (wasmPath: string) => string; /** Optional: custom import for dynamic loading (e.g. for Workers). */ importFn?: (url: string) => Promise; /** * Optional: transform glue JS source before importing. * When provided, the loader fetches the glue URL as text, applies this * transform, and imports a blob URL with the patched content. */ patchGlueContent?: (source: string) => string; } /** * Load the Emscripten module factory for a given WASM path. Caches by path. * The factory is the default export of the Emscripten-generated .mjs glue. */ export declare function loadModuleFactory(wasmPath: string, options: WasmModuleLoaderOptions): Promise<(config: Record) => Promise>; /** Clear the module factory cache (e.g. for tests or manifest updates). */ export declare function clearModuleCache(): void; //# sourceMappingURL=wasm-module.d.ts.map