import { AnimationBuilder } from '@ionic/core'; export interface CalendarOriginal { time: number; date: Date; year: number; month: number; firstWeek: number; howManyDays: number; } export interface CalendarDay { time: number; isToday: boolean; selected: boolean; disable: boolean; cssClass: string; isLastMonth?: boolean; isNextMonth?: boolean; title?: string; subTitle?: string; marked?: boolean; style?: { title?: string; subTitle?: string; }; isFirst?: boolean; isLast?: boolean; } export declare class CalendarMonth { original: CalendarOriginal; days: Array; } export interface DayConfig { date: Date; marked?: boolean; disable?: boolean; title?: string; subTitle?: string; cssClass?: string; } export interface ModalOptions { showBackdrop?: boolean; backdropDismiss?: boolean; enterAnimation?: AnimationBuilder; leaveAnimation?: AnimationBuilder; } export interface CalendarOptions { from?: Date | number; to?: Date | number; pickMode?: string; weekStart?: number; disableWeeks?: Array; weekdays?: Array; monthFormat?: string; color?: string; defaultTitle?: string; defaultSubtitle?: string; daysConfig?: Array; /** * show last month & next month days fill six weeks */ showAdjacentMonthDay?: boolean; } export interface CalendarModalOptions extends CalendarOptions { autoDone?: boolean; format?: string; cssClass?: string; id?: string; isSaveHistory?: boolean; closeLabel?: string; doneLabel?: string; clearLabel?: string; closeIcon?: boolean; doneIcon?: boolean; clearIcon?: boolean; canBackwardsSelected?: boolean; title?: string; defaultScrollTo?: Date; defaultDate?: DefaultDate; defaultDates?: DefaultDate[]; defaultDateRange?: { from: DefaultDate; to?: DefaultDate; } | null; step?: number; /** * @deprecated this version notwork */ showYearPicker?: boolean; defaultEndDateToStartDate?: boolean; } export interface CalendarComponentOptions extends CalendarOptions { showToggleButtons?: boolean; showMonthPicker?: boolean; monthPickerFormat?: string[]; } export declare class CalendarResult { time: number; unix: number; dateObj: Date; string: string; years: number; months: number; date: number; } export declare class CalendarComponentMonthChange { oldMonth: CalendarResult; newMonth: CalendarResult; } export declare type DefaultDate = Date | string | number | null; export declare type Colors = 'primary' | 'secondary' | 'danger' | 'light' | 'dark' | string; export declare type PickMode = 'multi' | 'single' | 'range'; export declare type CalendarComponentTypeProperty = 'string' | 'js-date' | 'moment' | 'time' | 'object'; export declare type CalendarComponentPayloadTypes = string | Date | number | {};