/** * Rewrites every `SegmentTemplate@endNumber` of an MPD into the form mpd-parser expects. * * In DASH, `@endNumber` is the number of the last segment. mpd-parser reads it as a segment count: it builds * the indexes `0 .. endNumber - 1` and numbers them `startNumber + index`. Both agree only when `startNumber` * is 1. With wall-clock numbering (`startNumber="179250840" endNumber="179251560"`, 721 segments, common in * catch-up thumbnail tracks) mpd-parser builds 179 million segments synchronously on the main thread, which * blocks the page for seconds and takes gigabytes of memory on engines that allow arrays that long. * * Passing the count (`endNumber - startNumber + 1`) gives mpd-parser exactly the segments the MPD describes. * Only templates that carry both attributes themselves are rewritten; an `@endNumber` whose `@startNumber` is * inherited from a parent template is left as is. */ export declare function normalizeDashEndNumber(mpd: string): string;