export interface Mp4VideoTrackInfo { codec: string; label: string; contentType: string; } export interface Mp4VideoSample { offset: number; size: number; dts: number; cts: number; duration: number; isSync: boolean; } export interface Mp4vSoftwareTrack extends Mp4VideoTrackInfo { width: number; height: number; timescale: number; duration: number; decoderConfig: Uint8Array; samples: Mp4VideoSample[]; } /** * Reads the declared video sample entry from an ISO BMFF/MP4 file. * * Browsers can accept the generic `video/mp4` container while silently * ignoring an unsupported video track. Inspecting `stsd` lets the renderer * distinguish that audio-only success from a genuinely decodable video. */ export declare const inspectMp4VideoTrack: (buffer: ArrayBuffer) => Mp4VideoTrackInfo | undefined; /** * Extracts the minimal MP4V decode timeline needed by the Apache-2.0 * PacketVideo software decoder. This intentionally avoids a general-purpose * media framework so the fallback stays small and offline-friendly. */ export declare const extractMp4vSoftwareTrack: (buffer: ArrayBuffer) => Mp4vSoftwareTrack | undefined;