import type { ParsedPlaylist, PlaylistOptions, SegmentData, SegmentDecoder } from './types'; /** * Playlist orchestrates playlist parsing, segment resolution, * data loading/caching, prefetching, and live polling. * * - Prefetch: automatic in getDataAtTime(). No configuration needed. * - Live polling: fixed-interval timer (standard HLS). No clock needed. * - Duration: exposed via playlist.totalDuration. The React hook syncs it to the clock. */ export declare class Playlist extends EventTarget { readonly options: PlaylistOptions; private playlist; private loader; private lastSegmentUri; private fetchFn; private destroyed; private pollTimer; private polling; constructor(options: PlaylistOptions); /** * Fetch and parse the playlist. Starts live polling if needed. */ init(): Promise; /** * Get decoded data for the segment at the given time. * Automatically prefetches the next `prefetchCount` segments. */ getDataAtTime(time: number): Promise | null>; getPlaylist(): ParsedPlaylist | null; setDecoder(decoder: SegmentDecoder): void; abort(): void; destroy(): void; private prefetchAhead; private schedulePoll; private pollNow; private stopPoll; private deriveBaseUrl; } //# sourceMappingURL=playlist.d.ts.map