taglib-wasm
Version:
TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps
23 lines • 968 B
TypeScript
/**
* List of audio formats supported by TagLib-Wasm
*/
export declare const SUPPORTED_FORMATS: readonly ["MP3", "MP4", "M4A", "FLAC", "OGG", "WAV", "MKA"];
/**
* Error codes for programmatic error handling
*/
export type TagLibErrorCode = "INITIALIZATION" | "INVALID_FORMAT" | "UNSUPPORTED_FORMAT" | "FILE_OPERATION" | "METADATA" | "MEMORY" | "ENVIRONMENT" | "WASM_MEMORY" | "MODULE_LOAD" | "WASI_HOST";
/**
* Base error class for all TagLib-Wasm errors
*/
export declare class TagLibError extends Error {
readonly code: TagLibErrorCode;
readonly details?: Record<string, unknown> | undefined;
/**
* Creates a new TagLibError
* @param code - Error code for programmatic handling
* @param message - Human-readable error message
* @param details - Additional context about the error
*/
constructor(code: TagLibErrorCode, message: string, details?: Record<string, unknown> | undefined);
}
//# sourceMappingURL=base.d.ts.map