UNPKG

taglib-wasm

Version:

TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps

19 lines 774 B
/** * @fileoverview WASI host loader for in-process filesystem access * * Loads the taglib-wasi.wasm binary with real WASI filesystem * implementations, enabling efficient seek-based file I/O. */ import type { FileSystemProvider } from "./wasi-fs-provider.js"; import type { WasiModule } from "./wasmer-sdk-loader/types.js"; import { TagLibError } from "../errors/base.js"; export interface WasiHostLoaderConfig { wasmPath?: string; preopens?: Record<string, string>; fs?: FileSystemProvider; } export declare class WasiHostLoadError extends TagLibError { constructor(message: string, cause?: unknown); } export declare function loadWasiHost(config: WasiHostLoaderConfig): Promise<WasiModule & Disposable>; //# sourceMappingURL=wasi-host-loader.d.ts.map