import type { OpenedSegment, TrackEntry } from "./matroska/header.js";
import type { TrackFlags, TrackTag } from "./vocabulary.js";
export type TrackType = "video" | "audio" | "complex" | "logo" | "subtitle" | "buttons" | "control" | "metadata" | "unknown";
export interface Track<T extends TrackType = TrackType> {
    type: T;
    /**
     * The position in the track list.
     *
     * The same count as ffmpeg's `0:N`.
     */
    index: number;
    /** The container's TrackNumber. */
    number: number;
    /** The TrackUID in hexadecimal, null where it is unstated. */
    uid: string | null;
    /** The Matroska CodecID, such as `S_TEXT/ASS`. */
    codecId: string;
    /** null when the track states none, or states an encoding over it this reader cannot undo. */
    codecPrivate: Uint8Array | null;
    /** Exactly what the container states, unnormalised; only no statement is null. */
    language: string | null;
    /** The BCP 47 language, passed through as `language` is. */
    languageIetf: string | null;
    name: string | null;
    flags: TrackFlags;
    /** Frame times already account for the largest CodecDelay any track states. */
    codecDelayNs: number;
    /** The SimpleTags of every Tag that targets this track's TrackUID. */
    tags: TrackTag[];
}
/** Each call answers tracks of their own, which share nothing with the file or with another call. */
export declare const allTracks: (segment: OpenedSegment) => Track[];
export declare const trackTypeOf: (entry: TrackEntry) => TrackType;
export declare const tagsOf: ({ trackTags }: OpenedSegment, { uid }: TrackEntry) => TrackTag[];
/** The track an entry states, sharing the entry's bytes and objects. */
export declare function trackOf(segment: OpenedSegment, entry: TrackEntry): Track;
