/** * Represents a channel parsed from an M3U playlist. */ export interface M3UChannel { name: string; stationId?: string; url: string; } /** * Result of parsing an M3U playlist. */ export interface M3UParseResult { channels: M3UChannel[]; errors: string[]; } /** * Generates a URL-safe channel key from a display name. The key is used as the channel identifier in URLs and configuration. * @param name - The display name to convert. * @returns A lowercase, hyphen-separated key suitable for URLs. * * Examples: * - "CNN Live!" → "cnn-live" * - "BBC News 24/7" → "bbc-news-247" * - " Spaces Everywhere " → "spaces-everywhere" */ export declare function generateChannelKey(name: string): string; /** * Parses an M3U playlist and extracts channel information. Handles extended M3U format with #EXTINF tags. * @param content - The M3U file content as a string. * @returns Parse result containing channels and any errors encountered. */ export declare function parseM3U(content: string): M3UParseResult;