/** * Fetch and compile the WASM binary at the given URL, returning a cached Promise on subsequent calls. * * Uses {@link WebAssembly.compileStreaming} when available for the fastest path (compile while * downloading); falls back to `WebAssembly.compile(arrayBuffer)` if streaming compile is unavailable * or rejects (e.g. when the server sends the wrong `Content-Type` for the `.wasm` response). * * Rejected promises are evicted from the cache so callers can retry after a transient failure. * * The URL should be obtained by invoking the `getLocateFile(config)` callback — that's the single * source of truth for SIMD vs no-SIMD selection and custom-URL substitution. * * @param url The resolved URL of the `.wasm` binary. */ export declare const getCompiledWasmModule: (url: string) => Promise; /** * Build the Emscripten `instantiateWasm` hook for an already-compiled module. When passed in the * Emscripten module options, Emscripten skips its own fetch+compile and calls this hook with the * imports it wants bound. We instantiate from the cached module and pass the resulting instance * (plus the module) back via `successCallback`. * * Each call to {@link WebAssembly.instantiate} produces a fresh `WebAssembly.Instance` with its * own linear memory, so the same cached module can back many isolated `createSingle` surfaces. */ export declare const buildInstantiateWasmHook: (compiledModule: WebAssembly.Module) => (imports: WebAssembly.Imports, successCallback: (instance: WebAssembly.Instance, module: WebAssembly.Module) => void) => {}; /** * Clears the in-memory compiled-module cache. Intended for tests and teardown scenarios. */ export declare const clearCompiledWasmCache: () => void;