/** * XMLTV Parser * Parses XMLTV format XML into our EPGProgram[] format * * XMLTV Format Reference: * http://xmltv.cvs.sourceforge.net/viewvc/xmltv/xmltv/xmltv.dtd */ import type { EPGProgram, EPGChannel } from '../types'; /** * Parse XMLTV date string to ISO date * Format: "YYYYMMDDHHmmss +TZ" or "YYYYMMDDHHmmss" * Example: "20240101120000 +0000" -> "2024-01-01T12:00:00.000Z" */ export declare function parseXMLTVDate(dateStr: string, defaultTimezone?: string): string; /** * Parse XMLTV XML content to EPGProgram[] and EPGChannel[] */ export declare function parseXMLTV(xmlContent: string, timezone?: string): { channels: EPGChannel[]; programs: EPGProgram[]; }; /** * Fetch and parse XMLTV from URL * Supports both plain XML and gzipped XML (.xml.gz) files */ export declare function fetchAndParseXMLTV(url: string, timezone?: string, proxyUrl?: string): Promise<{ channels: EPGChannel[]; programs: EPGProgram[]; }>; //# sourceMappingURL=xmltv.d.ts.map