/** * Chapter-rendering mixin — duration resolution, chapter-marker DOM rebuild, * and per-frame progress/buffer/hover updates. * * `progressBar.ts` and `chapters.ts` own the pure free functions; this mixin * binds them to the plugin's sliderRefs, chapterRefs, player, and * cachedDuration fields. * * Owns: resolveDuration, refreshChaptersAndDuration, renderChapterMarkers, * updateChapterProgress, updateChapterBuffer, updateChapterHover, * findChapterTitle, previousChapter, nextChapter. */ import type { DesktopUiInternals } from '../internals.js'; export declare const chapterMethods: { readonly resolveDuration: (this: DesktopUiInternals) => number; readonly refreshChaptersAndDuration: (this: DesktopUiInternals) => void; /** Rebuild the segmented chapter-marker DOM for the current item. */ readonly renderChapterMarkers: (this: DesktopUiInternals) => void; readonly updateChapterProgress: (this: DesktopUiInternals, percentage: number) => void; readonly updateChapterBuffer: (this: DesktopUiInternals, bufferedPct: number) => void; readonly updateChapterHover: (this: DesktopUiInternals, scrubPct: number) => void; readonly findChapterTitle: (this: DesktopUiInternals, time: number) => string | undefined; readonly previousChapter: (this: DesktopUiInternals) => void; readonly nextChapter: (this: DesktopUiInternals) => void; };