import type { LiveAudio, LiveVideo } from './types.js'; /** A segment as the recording keeps it, with the metadata of the init it plays under. */ export type HlsSegment = { seq: number; init: number; duration: number; size: number; video?: LiveVideo; audio?: LiveAudio; }; /** The media playlist: the last `window` segments while the recording is published, every segment once it ended (or * with `window: 'all'`, an event playlist). */ export declare function mediaPlaylist(recording: { state: 'publishing' | 'ended'; window?: number; }, segments: ReadonlyArray, options?: { window?: number | 'all'; uri?: (file: string) => string; }): string; /** The multivariant playlist naming the recording's one rendition, its peak bandwidth measured from its segments. */ export declare function masterPlaylist(recording: { video?: LiveVideo; audio?: LiveAudio; }, segments: ReadonlyArray, media: string): string; /** A broadcast view's master describes its own retained segments, independently of the source's current encoder. */ export declare function rangedMasterPlaylist(segments: ReadonlyArray, media: string): string;