/** * Pre-fetch AND pre-compile the SciChart WebAssembly module into an in-memory cache. * * Calling this at app startup means that by the time the first `SciChartSurface.create` or * `SciChartSurface.createSingle` runs, the binary is already downloaded and compiled — both * costs disappear from the chart-creation critical path. Subsequent surfaces (especially those * created with `createSingle`) only pay the cheap per-instance instantiation cost (typically * <10ms) instead of re-downloading and re-compiling. * * Safe to call multiple times — subsequent calls return the same cached Promise. * Respects the current {@link sciChartConfig} (call after `SciChartSurface.configure` / * `SciChartSurface.loadWasmFromCDN`). * * This is the union (one-wasm) build, so the single binary this preloads serves **both** the 2D * and the 3D engine — there is no separate 3D module to preload. * * The cache is keyed by the resolved URL, so each engine variant the runtime might load gets its * own entry: SIMD (`scichart.wasm`), no-SIMD (`scichart-nosimd.wasm`) and wasm64 * (`scichart-64.wasm`). By default the variant is auto-detected via {@link shouldUseWasm64} and * the SIMD rewrite inside {@link getLocateFile}, matching what `SciChartSurface.create*` will load. * Pass `useWasm64` explicitly only to preload a specific variant. * * @param useWasm64 Which binary to precompile. Defaults to the auto-detected engine selection. * @returns A Promise resolving to the compiled `WebAssembly.Module` when caching is complete. * * @example * ```ts * import { preloadWasm, SciChartSurface } from "scichart"; * * await preloadWasm(); * const { sciChartSurface } = await SciChartSurface.createSingle("chart1"); * ``` */ export declare const preloadWasm: (useWasm64?: boolean) => Promise;