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 • 681 B
TypeScript
export type PlatformIO = {
readFile(path: string): Promise<Uint8Array>;
writeFile(path: string, data: Uint8Array): Promise<void>;
stat(path: string): Promise<{
size: number;
}>;
readDir(path: string): AsyncGenerator<{
name: string;
isDirectory: boolean;
isFile: boolean;
}>;
readPartial?: (path: string, headerSize: number, footerSize: number) => Promise<Uint8Array>;
};
export declare function getPlatformIO(): PlatformIO;
/** @internal */
export declare function _setPlatformIOForTesting(io: PlatformIO): void;
/** @internal */
export declare function _resetPlatformIO(): void;
//# sourceMappingURL=platform-io.d.ts.map