/** * Playlist Type Detection * Smart detection to route between IPTV and HLS parsers */ import type { Playlist as IptvPlaylist } from "./types.js"; import type { HlsPlaylist } from "./hls-types.js"; /** * Playlist type identifier */ export type PlaylistFormat = "iptv" | "hls"; /** * Union type for parsed playlists */ export type ParsedPlaylist = { format: "iptv"; playlist: IptvPlaylist; } | { format: "hls"; playlist: HlsPlaylist; }; /** * Detect playlist format (IPTV or HLS) * @param text - Raw playlist text * @returns Playlist format identifier */ export declare function detectPlaylistType(text: string): PlaylistFormat; /** * Auto-detect and parse playlist * @param text - Raw playlist text * @returns Parsed playlist with format indicator */ export declare function parsePlaylistAuto(text: string): ParsedPlaylist;