import { IL10n } from '@syncfusion/react-base'; import { CalendarUtil } from '../common/calendar-util'; import { FreqType } from './types'; /** * Date Generator from Recurrence Rule */ /** * Generate Summary from Recurrence Rule * * @param {string} rule Accepts the Recurrence rule * @param {string} locale Accepts the locale name * @param {IL10n | undefined} localeObject Accepts the locale object (optional) * @returns {string} Returns the summary string from given recurrence rule */ export declare function getRecurrenceSummary(rule: string, locale: string, localeObject?: IL10n): string; /** * Generates the date collections from the given recurrence rule * * @param {Date} startDate Accepts the rule start date * @param {string} rule Accepts the recurrence rule * @param {string} excludeDate Accepts the exception dates in string format * @param {number} startDayOfWeek Accepts the start day index of week * @param {number} maximumCount Accepts the maximum number count to generate date collections * @param {Date} viewDate Accepts the current date instead of start date * @param {string} calendarMode Accepts the calendar type * @returns {number[]} Returns the collection of dates */ export declare function getRecurrenceDates(startDate: Date, rule: string, excludeDate: string, startDayOfWeek: number, maximumCount?: number, viewDate?: Date, calendarMode?: string): number[]; /** * Generate date object from given date string * * @param {string} recDateString Accepts the exception date as string * @returns {Date} Returns the date from exception date string */ export declare function getDateFromRecurrenceDateString(recDateString: string): Date; /** * Method to generate recurrence rule object from given rule * * @param {string} rules Accepts the recurrence rule * @returns {RecRule} Returns the recurrence rule object */ export declare function extractObjectFromRule(rules: string): RecRule; /** * Internal method to get calendar util * * @param {string} calendarMode Accepts the calendar type object * @returns {CalendarUtil} Returns the calendar util object * @private */ export declare function getCalendarUtil(calendarMode: string): CalendarUtil; /** @private */ export interface RecRule { freq: FreqType; interval: number; count: number; until: Date; day: string[]; wkst: string; month: number[]; weekNo: number[]; monthDay: number[]; yearDay: number[]; setPosition: number; validRules: string[]; recExceptionCount?: number; }