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

15 lines 957 B
/** * @fileoverview Wasm I/O operations for WASI tag reading and writing * * Pure functions that handle the low-level Wasm memory allocation * and TagLib C API calls for reading and writing audio metadata. */ import type { WasiModule } from "../wasmer-sdk-loader/types.js"; import type { ExtendedTag } from "../../types.js"; import type { RawId3v2Frame } from "../../wasm.js"; export declare function readTagsFromWasm(wasi: WasiModule, buffer: Uint8Array): Uint8Array; export declare function readTagsFromWasmPath(wasi: WasiModule, path: string): Uint8Array; export declare function readId3v2FramesFromWasm(wasi: WasiModule, source: Uint8Array | string, id?: string): RawId3v2Frame[]; export declare function writeTagsToWasmPath(wasi: WasiModule, path: string, tagData: ExtendedTag): boolean; export declare function writeTagsToWasm(wasi: WasiModule, fileData: Uint8Array, tagData: ExtendedTag): Uint8Array | null; //# sourceMappingURL=wasm-io.d.ts.map