/** * Progress-aware start selection for `autoPlay` — the v1 behaviour: the most * recently watched item wins, >90% watched rolls over to the next item * (fresh start), anything else resumes at the saved position. */ import type { VideoPlaylistItem } from '../types.js'; export interface StartSelection { index: number; /** Offset (seconds) the item should START at — passed as `startAt` so the backend begins fetching there. Absent = start at 0. */ resumeTime?: number; } export declare function pickStartItem(items: ReadonlyArray): StartSelection;