import type { Result } from "@cprussin/option-result"; import type { AudioTags } from "../file-preview"; import type { SystemError } from "../system"; import type { ReadBytes } from "./read-bytes"; export declare enum AudioContainer { /** MP3, or anything else an ID3v2 tag starts. */ Id3v2 = 0, /** MP3 with no ID3v2 tag. */ Mpeg = 1, Flac = 2, Ogg = 3, Mp4 = 4, Wav = 5, Aiff = 6 } /** The container `head`, a file's first bytes, starts, if it is audio. */ export declare const audioContainer: (head: Uint8Array) => AudioContainer | undefined; /** The tags of a file in `container`. */ export declare const audioTags: (container: AudioContainer, read: ReadBytes) => Promise>;