/** * WASM module loading. * * The module is instantiated once per page and shared. Two loading strategies are * supported and the default matters: `import init from '../../../crates/wasm/pkg/pptx.js'` * lets a bundler fingerprint and inline the `.wasm` next to the JS glue, which is what * makes the package work with no configuration. A consumer who would rather serve the * module from a CDN passes a URL to `initWasm` (or the `wasm` prop) instead. */ import * as bindings from '../../../crates/wasm/pkg/pptx.js'; import { type WasmSource } from './types.js'; export type WasmModule = typeof bindings; /** * Instantiates the WASM module, or returns the already-instantiated one. * * Calling this with a different `source` after the module has loaded is a no-op and warns: * a second instantiation would give two independent heaps and two independent image * caches, which is never what the caller meant. */ export declare function initWasm(source?: WasmSource): Promise; /** True once the module is instantiated. */ export declare function isWasmReady(): boolean; /** Version of the loaded WASM module. */ export declare function wasmVersion(): Promise; //# sourceMappingURL=wasm.d.ts.map