/** * @fileoverview WASI-based FileHandle implementation */ import type { FileHandle, RawPicture } from "../../wasm.js"; import type { BasicTagData } from "../../types/tags.js"; import type { AudioProperties } from "../../types.js"; import type { WasiModule } from "../wasmer-sdk-loader/types.js"; export declare class WasiFileHandle implements FileHandle { private readonly wasi; private fileData; private filePath; private tagData; private destroyed; constructor(wasiModule: WasiModule); private checkNotDestroyed; loadFromBuffer(buffer: Uint8Array): boolean; loadFromPath(path: string): boolean; isValid(): boolean; save(): boolean; getTagData(): BasicTagData; setTagData(data: Partial): void; getAudioProperties(): AudioProperties | null; getFormat(): string; private detectOggCodec; getBuffer(): Uint8Array; getProperties(): Record; setProperties(props: Record): void; getProperty(key: string): string; setProperty(key: string, value: string): void; isMP4(): boolean; getMP4Item(key: string): string; setMP4Item(key: string, value: string): void; removeMP4Item(key: string): void; getPictures(): RawPicture[]; setPictures(pictures: RawPicture[]): void; addPicture(picture: RawPicture): void; removePictures(): void; getRatings(): { rating: number; email: string; counter: number; }[]; setRatings(ratings: { rating: number; email?: string; counter?: number; }[]): void; destroy(): void; } //# sourceMappingURL=file-handle.d.ts.map