/** * Global object interface for resolving WASM URLs. */ export interface WasmLocatorGlobal { location?: { origin?: string; }; } /** * Configuration options for WasmRuntime. * @remarks * URL resolution order is: * 1) `url` (explicit override) * 2) `baseUrl` + `wasmFilename` (defaults to `assets/wasm/web/zerc20_wasm_bg.wasm`) * 3) bundled fallback URL (package-relative) * * If `baseUrl` is relative (not `http(s)://`), the runtime needs `location.origin` from the configured * `globalObject` (defaults to `globalThis`) to construct an absolute URL. */ export interface WasmRuntimeOptions { /** Direct URL to the wasm bundle (takes precedence over other resolution). */ url?: string; /** Base URL used to resolve the wasm file. */ baseUrl?: string; /** Override filename when using a custom base. */ wasmFilename?: string; /** Custom global object used when resolving relative base URLs (defaults to globalThis). */ globalObject?: WasmLocatorGlobal; } //# sourceMappingURL=types.d.ts.map