import { DayFormatType, DropdownData, FreqType, RecurrenceItems, RecurrenceState } from './types'; /** * Generates a default iCalendar recurrence rule (RFC 5545) string for a given frequency and reference date. * * @param {FreqType} freq - Recurrence frequency. * @param {Date} date - Reference `Date` used to derive day/month parts. If falsy or invalid, the current date is used. * @returns {string} A recurrence rule string (for example: 'FREQ=WEEKLY;INTERVAL=1;BYDAY=MO;'). */ export declare function getDefaultRule(freq: FreqType, date: Date): string; /** * Gets the two-letter weekday code for a given date. * * @param {Date} date The input Date object to extract the weekday from. * @returns {Date} The corresponding two-letter weekday code from WEEKDAY_CODES (e.g. 'MO', 'TU'). Defaults to 'SU' if index is out of range. */ export declare function getByDayFromDate(date: Date): string; /** * Calculates the set position (week index) of the provided date within its month * for recurrence rule generation. If the date falls into the final overflow week * of the month, this method returns -1 to indicate the "last" week. * * @param {Date} date The date to evaluate. * @returns {number} The 1-based week index within the month, or -1 to indicate the last week. */ export declare function getBySetPosFromDate(date: Date): number; export declare const getMonthData: (locale: string, calendarMode: string) => DropdownData[]; export declare const getDayData: (locale: string, calendarMode: string, firstDayOfWeek: number, format: DayFormatType) => RecurrenceItems[]; /** * Get the recurrence states from rule * * @param {string} rule - Recurrence rule string * @param {RecurrenceState} state - Initial recurrence states * @returns {RecurrenceState} processed recurrence rule states */ export declare function getRecurrenceStateFromRule(rule: string, state: RecurrenceState): RecurrenceState; /** * Method to generate string from date * * @param {Date} date Accepts the date value * @returns {string} Returns the string value */ export declare function getRecurrenceStringFromDate(date: Date): string;