/** * WASM binary resolution -- locates the czap-compute .wasm file. * * Searches for the compiled WASM binary in conventional locations: * 1. Configured path (if provided) * 2. crates/czap-compute/target/wasm32-unknown-unknown/release/czap_compute.wasm * (monorepo dev — a fresh `pnpm run build:wasm` output) * 3. The artifact shipped inside `@czap/core`, located through the module graph * (the default for an installed consumer, who has no Rust crate to build). * See {@link resolvePackagedWasm}. This is the branch that makes * `czap({ wasm: { enabled: true } })` "just work" off a plain npm install * (0.2.1: before this, an installed consumer had nothing to resolve and * silently ran the TS fallback). * 4. public/czap-compute.wasm (host pre-copied — explicit override of last resort) * * @module */ /** * Successful WASM-resolution result: the absolute binary path plus the * search step that found it (useful for diagnostics). */ export interface WASMResolution { /** Absolute filesystem path to the WASM binary. */ readonly filePath: string; /** Which search step matched (`'config'`, `'crate'`, `'package'`, or `'public'`). */ readonly source: 'config' | 'crate' | 'package' | 'public'; } /** * Render the conventional WASM search locations for diagnostics. */ export declare function formatWasmSearchPaths(projectRoot: string, configPath?: string): string; /** * Resolve the czap-compute WASM binary path. */ export declare function resolveWASM(projectRoot: string, configPath?: string): WASMResolution | null; //# sourceMappingURL=wasm-resolve.d.ts.map