export interface WasmWireResult { ok: boolean; lines: string[]; } /** * GH #21: a `wasm-pack --target nodejs` output is CommonJS, but it lands inside * an ESM (`"type":"module"`) harness — so Node would parse the CJS shim as ESM * and `__dirname` (used to locate the `.wasm`) breaks. Force `{"type":"commonjs"}` * into the wasm dir's package.json so the shim loads as CJS, and remove the * `.gitignore` (`*`) wasm-pack drops, which would otherwise prune `wasm/` from * the npm tarball. Extracted + exported so it is unit-testable without a real * wasm-pack build. Returns the CJS entry filename (wasm-pack's `main`, else * `index.js`). */ export declare function markWasmDirCommonjs(outDir: string): string; export declare function wireWasm(cratePath: string, targetDir: string): WasmWireResult; //# sourceMappingURL=with-wasm.d.ts.map