taglib-wasm
Version:
TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps
81 lines • 3.11 kB
TypeScript
/**
* Convenience constants for common property names.
* All values are camelCase PropertyKeys backed by PROPERTIES entries.
* Use toTagLibKey()/fromTagLibKey() to translate to/from TagLib wire names.
*/
export declare const Tags: {
readonly Title: "title";
readonly Artist: "artist";
readonly Album: "album";
readonly Date: "date";
readonly TrackNumber: "trackNumber";
readonly Genre: "genre";
readonly Comment: "comment";
readonly AlbumArtist: "albumArtist";
readonly Composer: "composer";
readonly Copyright: "copyright";
readonly EncodedBy: "encodedBy";
readonly DiscNumber: "discNumber";
readonly TotalTracks: "totalTracks";
readonly TotalDiscs: "totalDiscs";
readonly Compilation: "compilation";
readonly Bpm: "bpm";
readonly Lyricist: "lyricist";
readonly Conductor: "conductor";
readonly Remixer: "remixedBy";
readonly Language: "language";
readonly Publisher: "publisher";
readonly Mood: "mood";
readonly Media: "media";
readonly RadioStationOwner: "radioStationOwner";
readonly Producer: "producer";
readonly Subtitle: "subtitle";
readonly Label: "label";
readonly TitleSort: "titleSort";
readonly ArtistSort: "artistSort";
readonly AlbumArtistSort: "albumArtistSort";
readonly AlbumSort: "albumSort";
readonly ComposerSort: "composerSort";
readonly Isrc: "isrc";
readonly Asin: "asin";
readonly CatalogNumber: "catalogNumber";
readonly Barcode: "barcode";
readonly MusicBrainzArtistId: "musicbrainzArtistId";
readonly MusicBrainzReleaseArtistId: "musicbrainzReleaseArtistId";
readonly MusicBrainzWorkId: "musicbrainzWorkId";
readonly MusicBrainzReleaseId: "musicbrainzReleaseId";
readonly MusicBrainzRecordingId: "musicbrainzTrackId";
readonly MusicBrainzTrackId: "musicbrainzTrackId";
readonly MusicBrainzReleaseGroupId: "musicbrainzReleaseGroupId";
readonly MusicBrainzReleaseTrackId: "musicbrainzReleaseTrackId";
readonly AcoustidFingerprint: "acoustidFingerprint";
readonly AcoustidId: "acoustidId";
readonly PodcastId: "podcastId";
readonly PodcastUrl: "podcastUrl";
readonly Grouping: "grouping";
readonly Work: "work";
readonly Lyrics: "lyrics";
readonly AlbumGain: "replayGainAlbumGain";
readonly AlbumPeak: "replayGainAlbumPeak";
readonly TrackGain: "replayGainTrackGain";
readonly TrackPeak: "replayGainTrackPeak";
readonly OriginalArtist: "originalArtist";
readonly OriginalAlbum: "originalAlbum";
readonly OriginalDate: "originalDate";
readonly Script: "script";
readonly InvolvedPeople: "involvedPeople";
readonly Encoding: "encoding";
};
/**
* Type representing all valid tag property names.
*/
export type TagName = typeof Tags[keyof typeof Tags];
/**
* Type guard to check if a string is a valid tag name.
*/
export declare function isValidTagName(name: string): name is TagName;
/**
* Get all available tag names as an array.
*/
export declare function getAllTagNames(): readonly TagName[];
//# sourceMappingURL=tags.d.ts.map