/** * Zero-dependency iCalendar (.ics) parser, generator, and REPLY builder. * Handles RFC 5545 (iCalendar) and RFC 6047 (iMIP) formats. * * @module ics-parser */ import type { CalendarEvent } from "./types.js"; /** * Parse iCalendar (.ics) content and extract all VEVENT entries. * * @param content - Raw .ics file content * @returns Array of parsed calendar events */ export declare function parseIcsContent(content: string): CalendarEvent[]; /** * Generate a valid iCalendar (.ics) string from a CalendarEvent. * * @param event - Calendar event to serialize * @returns RFC 5545 compliant iCalendar content */ export declare function generateIcs(event: CalendarEvent): string; type ResponseStatus = "accept" | "decline" | "tentative"; /** * Generate an iCalendar REPLY for responding to a calendar invite. * Per RFC 6047 (iMIP), the REPLY contains: * - METHOD:REPLY at the VCALENDAR level * - The original event UID, DTSTART, DTEND, SUMMARY, ORGANIZER * - The attendee with their PARTSTAT set to ACCEPTED/DECLINED/TENTATIVE * * @param event - The original calendar event from the invite * @param attendeeEmail - The responding attendee's email address * @param response - The response type: accept, decline, or tentative * @returns RFC 5545/6047 compliant iCalendar REPLY content */ export declare function generateReplyIcs(event: CalendarEvent, attendeeEmail: string, response: ResponseStatus): string; export {}; //# sourceMappingURL=ics-parser.d.ts.map