/** * wasm-bindgen rethrows Rust `JsValue::from_str(...)` errors as bare strings, * which break `err instanceof Error` and structured error handling. Normalize * to `Error` so the JS API surface is consistent with idiomatic JS rejection. */ export declare function toError(err: unknown, fnName: string): Error; //# sourceMappingURL=errors.d.ts.map