import fs from 'fs'; import { Calendar } from './components/Calendar'; /** * Read a calendar from a iCalendar file. * @param path Path to the file. * @returns The calendar deserialized from the file. * @throws {DeserializationError} If the file content is not a valid calendar. * @deprecated Use `loadCalendarSync` instead. */ export declare function load(path: fs.PathLike): Promise; /** * Read a calendar from a iCalendar file. * @param path Path to the file. * @param encoding The file encoding, defaults to UTF-8. * @returns The calendar deserialized from the file. * @throws {DeserializationError} If the file content is not a valid component. * @throws {ComponentValidationError} If the deserialized component is not a VCALENDAR. */ export declare function loadCalendarSync(path: fs.PathLike, encoding?: BufferEncoding): Calendar; /** * Write a calendar to a file. * @param calendar The calendar to write to file. * @param path Path to the file to write. * @example * dump(myCalendar, 'calendar.ics') * @deprecated Use `dumpCalendarSync` instead. */ export declare function dump(calendar: Calendar, path: string): Promise; /** * Write a calendar to a file. * @param calendar The calendar to write to file. * @param path Path to the file to write. * @param encoding The file encoding, defaults to UTF-8. * @example * dump(myCalendar, 'calendar.ics') */ export declare function dumpCalendarSync(calendar: Calendar, path: string, encoding?: BufferEncoding): void; //# sourceMappingURL=io.d.ts.map