import { Segment } from "./segment"; import * as HLS from "hls-parser"; export declare enum ChunklistPruneType { "noPrune" = 0, "pruneStart" = 1, "pruneEnd" = 2, "pruneStartAndEnd" = 3, "preview" = 4 } export declare class Chunklist { protected _url: string | null; protected _m3u8: HLS.types.MediaPlaylist; protected _segments: Segment[]; protected _totalDuration: number; protected _baseUrl: string; protected _pruneType: ChunklistPruneType; protected _maxDuration: number; get m3u8(): HLS.types.MediaPlaylist; get segments(): Segment[]; get url(): string | null; protected constructor(body: string); static loadFromString(body: string): Chunklist; static loadFromUrl(url: string): Promise; setPruneType(pruneType: ChunklistPruneType): Chunklist; getPruneType(): ChunklistPruneType; setMaxDuration(maxDuration: number): Chunklist; getMaxDuration(): number; setBaseUrl(baseUrl: string): Chunklist; getBaseUrl(): string; toString(): string; getPrunedSegments(): Segment[]; protected getPreviewSegments(): Segment[]; }