export interface TvgChannel { id: string; displayNames: string[]; iconUrl?: string; } export interface TvgProgramme { channelId: string; start: number; stop?: number; title?: string; desc?: string; categories?: string[]; } export declare function parseXmltv(xml: string): { channels: TvgChannel[]; }; export declare function normalizeName(s: string): string; export declare function buildEpgBindingIndex(channels: TvgChannel[]): { byId: Map; byName: Map; }; export declare function parseXmltvDate(s: string | undefined): number | undefined; export declare function parseXmltvPrograms(xml: string): { programs: TvgProgramme[]; }; export declare function buildChannelCategoryMap(programs: TvgProgramme[], options?: { topN?: number; }): Map;