export interface IcalComponent { kind: 'event' | 'task'; uid: string; recurrenceId?: string; summary?: string; description?: string; location?: string; start?: string; end?: string; allDay: boolean; tz?: string; rrule?: string; exdates: string[]; rdates?: string[]; status?: string; categories: string[]; priority?: number; percent?: number; completed?: string; color?: string | null; url?: string | null; transp?: string | null; class?: string | null; comment?: string[]; contact?: string[]; resources?: string[]; conference?: { uri: string; label?: string; }[]; geo?: { lat: number; lng: number; label?: string; } | null; alarms?: IcalAlarm[]; organizer?: IcalPerson | null; attendees?: IcalPerson[]; attachments?: IcalAttachment[]; image?: IcalAttachment | null; attachBase?: string; raw: string; } export interface IcalPerson { email: string; name?: string; role?: string; status?: string; rsvp?: boolean; } export interface IcalAlarm { uid?: string; action: string; offsetMinutes?: number; related?: 'START' | 'END'; at?: string; text?: string; } export type IcalAttachment = { uri: string; fmttype?: string; filename?: string; } | { data: string; fmttype?: string; filename?: string; }; export interface Occurrence { uid: string; recurrenceId?: string; start: string; end?: string; allDay: boolean; }