import { FrameTimeline } from "./frame-timeline"; /** * Walks the track's packets metadata-only and records each one's timestamp in * the container's own integer grain, which is the grain every timestamp of the * track is a whole multiple of. * * Decode order is not presentation order on a B-frame source, so the table is * sorted before it is indexed, and the trailing frame's duration comes from the * packet that ends up last in that order. A WebM block need not state a * duration, which the demuxer reads as zero, so a last frame without one is * given a duration from elsewhere. */ export declare function readFrameTimeline(videoTrack: unknown): Promise; /** * The same walk, also naming the key frames: the presentation index of every * frame a decode can start at, ascending. */ export declare function readFrameIndex(videoTrack: unknown): Promise<{ readonly timeline: FrameTimeline; readonly keyIndices: Int32Array; }>;