import { RawOptionsFromRefiners, RefinedOptionsFromRefiners, BaseOptionsRefined, EventRefiners, BaseOptions, EventSourceOptions, EventSourceOptionsRefined } from '@fullcalendar/core/protected-api'; import { NativeDateFormatterOptions, FuncDateFormatterFunc, Duration, DateTimeFormatPartWithWeek as DateTimeFormatPartWithWeek$1, DateMarker, DateInput, DurationInput, DateRangeInput, CmdDateFormatterFunc, DateEnv, DateRange, LocaleCodeArg, OpenDateRange, createDuration, WeekNumberCalculation, DateFormatter } from '@full-ui/headless-calendar'; import { ComponentType, ReactNode, Component } from 'preact/compat'; type FormatterInput = NativeDateFormatterOptions | string | FuncDateFormatterFunc; declare function createFormatter(input: FormatterInput): DateFormatter; interface PointerDragEvent { origEvent: UIEvent; isTouch: boolean; subjectEl: EventTarget; pageX: number; pageY: number; deltaX: number; deltaY: number; } interface EventInstanceRange extends DateRange { instantStartMs?: number; instantEndMs?: number; } interface EventInstance { instanceId: string; defId: string; range: EventInstanceRange; } type EventInstanceHash = { [instanceId: string]: EventInstance; }; interface OrderSpec { field?: string; order?: number; func?: FieldSpecInputFunc; } type FieldSpecInput = string | string[] | FieldSpecInputFunc | FieldSpecInputFunc[]; type FieldSpecInputFunc = (a: Subject, b: Subject) => number; declare function parseFieldSpecs(input: FieldSpecInput): OrderSpec[]; interface ViewApi { calendar: CalendarApi; type: string; title: string; activeStart: Date; activeEnd: Date; currentStart: Date; currentEnd: Date; getOption(name: string): any; } interface EventSourceApi { id: string; url: string; format: string; remove(): void; refetch(): void; } type BusinessHoursInput = boolean | EventInput | EventInput[]; interface Rect { left: number; right: number; top: number; bottom: number; } type MountInfo = DisplayInfo & { el: HTMLElement; }; type DidMountHandler = (mountData: MountInfo) => void; type WillUnmountHandler = (mountData: MountInfo) => void; interface ObjCustomContent { html?: string; domNodes?: any[]; } type CustomContent = ReactNode | ObjCustomContent; type ContentGenerator = CustomContent | ((renderProps: RenderProps) => (CustomContent | true | void | undefined)); type ClassNameInput = string | undefined | null | false | 0; type ClassNameGenerator = ClassNameInput | ((renderProps: RenderProps) => ClassNameInput); declare function refineClassName(input: unknown, optionName: string): ClassNameInput; interface EventInteractionState { affectedEvents: EventStore; mutatedEvents: EventStore; isEvent: boolean; } interface SplittableProps { businessHours: EventStore | null; dateSelection: DateSpan | null; eventStore: EventStore; eventUiBases: EventUiHash; eventDrag: EventInteractionState | null; eventResize: EventInteractionState | null; eventSelection: string; } interface DateMeta { dow: number; date: Date; isDisabled: boolean; isOther: boolean; isToday: boolean; isPast: boolean; isFuture: boolean; } type EventSourceSuccessResponseHandler = (this: CalendarApiImpl, rawData: any, response: any) => EventInput[] | void; type EventSourceErrorResponseHandler = (error: Error) => void; interface EventSource { _raw: any; sourceId: string; sourceDefId: number; meta: Meta; publicId: string; isFetching: boolean; latestFetchId: string; fetchRange: DateRange | null; defaultAllDay: boolean | null; eventDataTransform: EventInputTransformer; ui: EventUi; success: EventSourceSuccessResponseHandler | null; failure: EventSourceErrorResponseHandler | null; extendedProps: Dictionary; } type EventSourceHash = { [sourceId: string]: EventSource; }; interface EventSourceFetcherRes { rawEvents: EventInput[]; response?: Response; } type EventSourceFetcher = (data: { eventSource: EventSource; range: DateRange; isRefetch: boolean; context: CalendarContext; }, successCallback: (res: EventSourceFetcherRes) => void, errorCallback: (error: Error) => void) => void; type EqualityFunc = (a: T, b: T) => boolean; type EqualityFuncs

= { [K in keyof P]?: EqualityFunc; }; declare abstract class PureComponent extends Component { static addPropsEquality: typeof addPropsEquality; static addStateEquality: typeof addStateEquality; static contextType: any; context: ViewContext; propEquality: EqualityFuncs; stateEquality: EqualityFuncs; shouldComponentUpdate(nextProps: Props, nextState: State): boolean; } declare abstract class BaseComponent extends PureComponent { static contextType: any; context: ViewContext; } declare function addPropsEquality(this: { prototype: { propEquality: any; }; }, propEquality: any): void; declare function addStateEquality(this: { prototype: { stateEquality: any; }; }, stateEquality: any): void; interface ToolbarModel { sectionWidgets: { start: ToolbarWidget[][]; center: ToolbarWidget[][]; end: ToolbarWidget[][]; }; viewsWithButtons: string[]; hasTitle: boolean; } interface ToolbarInfo { borderlessX: boolean; borderlessTop: boolean; borderlessBottom: boolean; } interface ToolbarSectionInfo { name: string; } interface ButtonGroupInfo { hasSelection: boolean; } interface ButtonInfo { name: string; text: string; isPrimary: boolean; isSelected: boolean; isDisabled: boolean; isIconOnly: boolean; buttonGroup: ButtonGroupInfo | null; } type ButtonDisplay = 'auto' | 'icon' | 'text' | 'icon-text' | 'text-icon'; interface ButtonInput { didMount?: DidMountHandler; willUnmount?: WillUnmountHandler; click?: (ev: MouseEvent) => void; hint?: string | ((viewOrCurrentUnitText: string, viewOrCurrentUnit: string) => string); class?: ClassNameGenerator; className?: ClassNameGenerator; display?: ButtonDisplay; iconClass?: string | undefined; iconContent?: ContentGenerator<{}>; text?: string; isPrimary?: boolean; } interface ToolbarWidget { name: string; isView?: boolean; customElement?: ToolbarElementInput; buttonText?: string; buttonHint?: string | ((currentUnit: string) => string); buttonDisplay?: ButtonDisplay; buttonIconClass?: string | undefined; buttonIconContent?: ContentGenerator<{}>; buttonClick?: (ev: MouseEvent) => void; buttonIsPrimary?: boolean; buttonClass?: ClassNameGenerator; buttonDidMount?: DidMountHandler; buttonWillUnmount?: WillUnmountHandler; } interface ToolbarInput { left?: string; center?: string; right?: string; start?: string; end?: string; } type ToolbarElementInput = ContentGenerator<{}>; interface ViewDisplayInfo { view: ViewApi; borderlessX: boolean; borderlessTop: boolean; borderlessBottom: boolean; options: { headerToolbar: ToolbarInput | false | undefined; footerToolbar: ToolbarInput | false | undefined; }; isHeightAuto: boolean; } interface ViewProps { className?: string; dateProfile: DateProfile; businessHours: EventStore; eventStore: EventStore; eventUiBases: EventUiHash; dateSelection: DateSpan | null; eventSelection: string; eventDrag: EventInteractionState | null; eventResize: EventInteractionState | null; forPrint: boolean; labelId: string | undefined; labelStr: string | undefined; } type ViewContentInfo = ViewProps & ViewDisplayInfo & { nextDayThreshold: Duration; }; declare function sliceEvents(props: ViewContentInfo, allDay?: boolean): EventRenderRange[]; type ViewComponentType = ComponentType; type ViewConfigInput = ViewComponentType | ViewOptions; type ViewConfigInputHash = { [viewType: string]: ViewConfigInput; }; interface ViewSpec { type: string; component: ViewComponentType; duration: Duration; durationUnit: string; singleUnit: string; optionDefaults: ViewOptions; optionOverrides: ViewOptions; } type ViewSpecHash = { [viewType: string]: ViewSpec; }; interface HandlerFuncTypeHash { [eventName: string]: (...args: any[]) => any; } declare class Emitter { private handlers; private options; private thisContext; setThisContext(thisContext: any): void; setOptions(options: Partial): void; on(type: Prop, handler: HandlerFuncs[Prop]): void; off(type: Prop, handler?: HandlerFuncs[Prop]): void; trigger(type: Prop, ...args: Parameters): void; hasHandlers(type: keyof HandlerFuncs): boolean; } declare class CalendarNowManager { private dateEnv?; private resetListeners; private nowAnchorDate?; private nowAnchorQueried?; private nowFn?; handleInput(dateEnv: DateEnv, // will change if timezone setup changed nowInput: DateInput | (() => DateInput)): void; getDateMarker(): DateMarker; getEpochMs(): number; addResetListener(handler: () => void): void; removeResetListener(handler: () => void): void; } interface CalendarDataManagerState { dynamicOptionOverrides: CalendarOptions; currentViewType: string; currentDate: DateMarker; dateProfile: DateProfile; businessHours: EventStore; eventSources: EventSourceHash; eventUiBases: EventUiHash; eventStore: EventStore; renderableEventStore: EventStore; dateSelection: DateSpan | null; eventSelection: string; eventDrag: EventInteractionState | null; eventResize: EventInteractionState | null; selectionConfig: EventUi; nowDate: DateMarker; } interface CalendarToolbarProps { title: string; selectedButton: string; navUnit: string; isTodayEnabled: boolean; isPrevEnabled: boolean; isNextEnabled: boolean; } interface CalendarOptionsData { localeDefaults: CalendarOptions; calendarOptions: CalendarOptionsRefined; toolbarConfig: { [toolbarName: string]: ToolbarModel; }; availableRawLocales: any; dateEnv: DateEnv; pluginHooks: PluginHooks; viewSpecs: ViewSpecHash; } interface CalendarCurrentViewData { viewSpec: ViewSpec; options: ViewOptionsRefined; viewApi: ViewImpl; dateProfileGenerator: DateProfileGenerator; } type CalendarDataBase = CalendarOptionsData & CalendarCurrentViewData & CalendarDataManagerState; interface CalendarData extends CalendarDataBase { nowManager: CalendarNowManager; viewTitle: string; calendarApi: CalendarApiImpl; dispatch: (action: Action) => void; emitter: Emitter>; getCurrentData(): CalendarData; toolbarProps: CalendarToolbarProps; } declare class ViewImpl implements ViewApi { type: string; private getCurrentData; private dateEnv; constructor(type: string, getCurrentData: () => CalendarData, dateEnv: DateEnv); get calendar(): CalendarApi; get title(): string; get activeStart(): Date; get activeEnd(): Date; get currentStart(): Date; get currentEnd(): Date; getOption(name: string): any; } interface Hit { componentId?: string; context?: ViewContext; dateProfile: DateProfile; dateSpan: DateSpan; getDayEl: () => HTMLElement; rect: Rect; layer: number; largeUnit?: string; } declare abstract class DateComponent extends BaseComponent { uid: string; prepareHits(): void; queryHit(isRtl: boolean, positionLeft: number, positionTop: number, elWidth: number, elHeight: number): Hit | null; isValidSegDownEl(el: HTMLElement): boolean; isValidDateDownEl(el: HTMLElement): boolean; } declare abstract class Interaction { component: DateComponent; isHitComboAllowed: ((hit0: Hit, hit1: Hit) => boolean) | null; constructor(settings: InteractionSettings); destroy(): void; } type InteractionClass = { new (settings: InteractionSettings): Interaction; }; interface InteractionSettingsInput { el: HTMLElement; useEventCenter?: boolean; isHitComboAllowed?: (hit0: Hit, hit1: Hit) => boolean; disableHits?: boolean; } interface InteractionSettings { component: DateComponent; el: HTMLElement; useEventCenter: boolean; isHitComboAllowed: ((hit0: Hit, hit1: Hit) => boolean) | null; } interface ViewContext extends CalendarContext { options: ViewOptionsRefined; dateProfileGenerator: DateProfileGenerator; viewSpec: ViewSpec; viewApi: ViewImpl; baseId: string; registerInteractiveComponent: (component: DateComponent, settingsInput: InteractionSettingsInput) => void; unregisterInteractiveComponent: (component: DateComponent) => void; } declare abstract class ElementDragging { emitter: Emitter; constructor(el: HTMLElement, selector?: string); destroy(): void; abstract cancel(): void; setMirrorIsVisible(bool: boolean): void; setMirrorNeedsRevert(bool: boolean): void; setAutoScrollEnabled(bool: boolean): void; } type ElementDraggingClass = { new (el: HTMLElement, selector?: string): ElementDragging; }; interface CalendarContentProps extends CalendarData { toolbarProps: CalendarToolbarProps; forPrint: boolean; } interface ScrollerInterface { x: number; y: number; scrollTo(options: { x?: number; y?: number; }): void; addScrollStartListener(handler: () => void): void; removeScrollStartListener(handler: () => void): void; addScrollEndListener(handler: (isDevice: boolean) => void): void; removeScrollEndListener(handler: (isDevice: boolean) => void): void; } interface ScrollerSyncerClass { new (horizontal?: boolean): ScrollerSyncerInterface; } interface ScrollerSyncerInterface extends ScrollerInterface { handleChildren(scrollers: ScrollerInterface[]): void; destroy(): void; addScrollStartListener(handler: (isDevice: boolean) => void): void; removeScrollStartListener(handler: (isDevice: boolean) => void): void; addScrollListener(handler: (isDevice: boolean, scroll: number) => void): void; removeScrollListener(handler: (isDevice: boolean, scroll: number) => void): void; } type CssDimValue = string | number; interface NowIndicatorHeaderInfo { date: Date; view: ViewApi; } interface NowIndicatorLineInfo { date: Date; view: ViewApi; } interface MoreLinkInfo$1 { num: number; numericText: string; longText: string; text: string; isNarrow: boolean; view: ViewApi; } interface CalendarDisplayInfo { borderlessX: boolean; borderlessTop: boolean; borderlessBottom: boolean; } declare class Store { private handlers; private currentValue; set(value: Value): void; subscribe(handler: (value: Value) => void): void; } type CustomRenderingHandler = (customRender: CustomRendering) => void; interface CustomRendering { id: string; isActive: boolean; containerEl: HTMLElement; generatorMeta: any; renderProps: RenderProps; } declare class CustomRenderingStore extends Store>> { private map; handle(customRendering: CustomRendering): void; } interface SlotLaneInfo extends DateMeta { time?: Duration; isMajor: boolean; isMinor: boolean; view: ViewApi; } interface SlotHeaderInfo extends SlotLaneInfo { level: number; isTime: boolean; text: string; isNarrow: boolean; hasNavLink: boolean; isFirst: boolean; } interface AllDayHeaderInfo { text: string; view: ViewApi; isNarrow: boolean; } interface DayHeaderInfo extends DateMeta { date: Date; isNarrow: boolean; isMajor: boolean; inPopover: boolean; hasNavLink: boolean; level: number; text: string; textParts: DateTimeFormatPartWithWeek$1[]; weekdayText: string; dayNumberText: string; view: ViewApi; [otherProp: string]: any; } interface DayHeaderDividerInfo { isSticky: boolean; multiMonthColumns: number; options: { allDaySlot: boolean; }; } interface DayCellInfo extends DateMeta { date: DateMarker; isMajor: boolean; isNarrow: boolean; inPopover: boolean; hasNavLink: boolean; view: ViewApi; text: string; textParts: DateTimeFormatPartWithWeek$1[]; weekdayText: string; dayNumberText: string; monthText: string; options: { businessHours: boolean; }; [extraProp: string]: any; } type EventSourceFuncInfo = { start: Date; end: Date; startStr: string; endStr: string; timeZone: string; }; type EventSourceFunc = ((info: EventSourceFuncInfo, successCallback: (eventInputs: EventInput[]) => void, failureCallback: (error: Error) => void) => void) | ((info: EventSourceFuncInfo) => Promise); declare const JSON_FEED_EVENT_SOURCE_REFINERS: { method: StringConstructor; extraParams: Identity Dictionary)>; startParam: StringConstructor; endParam: StringConstructor; timeZoneParam: StringConstructor; }; declare const EVENT_SOURCE_REFINERS: { id: StringConstructor; defaultAllDay: BooleanConstructor; url: StringConstructor; format: StringConstructor; events: Identity; eventDataTransform: Identity; success: Identity; failure: Identity; }; type BuiltInEventSourceRefiners = typeof EVENT_SOURCE_REFINERS & typeof JSON_FEED_EVENT_SOURCE_REFINERS; type EventSourceInputObject = EventUiInput & EventSourceOptions; type EventSourceInput = EventSourceInputObject | // object in extended form EventInput[] | EventSourceFunc | // just a function string; type EventSourceRefined = EventUiRefined & EventSourceOptionsRefined; type DateTimeFormatPartWithWeek = Omit & { type: Intl.DateTimeFormatPart['type'] | 'week'; }; interface WeekNumberHeaderInfo { num?: number; date?: Date; text: string; textParts: DateTimeFormatPartWithWeek[]; isNarrow: boolean; hasNavLink: boolean; options: { dayMinWidth: number | undefined; }; } interface InlineWeekNumberInfo { num: number; date: Date; text: string; textParts: DateTimeFormatPartWithWeek[]; isNarrow: boolean; hasNavLink: boolean; } interface EventSegment { event: EventApi; start: Date; end: Date; isStart: boolean; isEnd: boolean; } type MoreLinkAction = MoreLinkSimpleAction | MoreLinkHandler; type MoreLinkSimpleAction = 'popover' | 'week' | 'day' | 'timeGridWeek' | 'timeGridDay' | string; interface MoreLinkInfo { date: Date; allDay: boolean; allSegs: EventSegment[]; hiddenSegs: EventSegment[]; jsEvent: UIEvent; view: ViewApi; } type MoreLinkHandler = (info: MoreLinkInfo) => MoreLinkSimpleAction | void; interface DayLaneInfo extends DateMeta { date: DateMarker; isNarrow: boolean; isStack: boolean; isMajor: boolean; view: ViewApi; [extraProp: string]: any; } type TableDisplayInfo = { borderlessX: boolean; borderlessTop: boolean; borderlessBottom: boolean; multiMonthColumns: number; }; type TableHeaderInfo = TableDisplayInfo & { isSticky: boolean; }; type TableBodyInfo = TableDisplayInfo; interface EventClickInfo { el: HTMLElement; event: EventImpl; jsEvent: MouseEvent; view: ViewApi; } interface EventHoveringInfo { el: HTMLElement; event: EventImpl; jsEvent: MouseEvent; view: ViewApi; } interface DateSelectionApi extends DateSpanApi { jsEvent: UIEvent; view: ViewApi; } type DatePointTransform = (dateSpan: DateSpan, context: CalendarContext) => any; type DateSpanTransform = (dateSpan: DateSpan, context: CalendarContext) => any; type CalendarInteraction = { destroy: () => void; }; type CalendarInteractionClass = { new (context: CalendarContext): CalendarInteraction; }; type OptionChangeHandler = (propValue: any, context: CalendarContext) => void; type OptionChangeHandlerMap = { [propName: string]: OptionChangeHandler; }; interface DateSelectInfo extends DateSpanApi { jsEvent: MouseEvent | null; view: ViewApi; } interface DateUnselectInfo { jsEvent: MouseEvent; view: ViewApi; } type DatesSetInfo = RangeApiWithTimeZone & { view: ViewApi; }; interface EventAddInfo { event: EventImpl; relatedEvents: EventImpl[]; revert: () => void; } interface EventChangeInfo { oldEvent: EventImpl; event: EventImpl; relatedEvents: EventImpl[]; revert: () => void; } interface EventDropInfo extends EventChangeInfo { el: HTMLElement; delta: Duration; jsEvent: MouseEvent; view: ViewApi; } interface EventRemoveInfo { event: EventImpl; relatedEvents: EventImpl[]; revert: () => void; } interface ButtonState { text: string; hint: string; } interface NavButtonState extends ButtonState { isDisabled: boolean; } interface ButtonStateMap { today: NavButtonState; prev: NavButtonState; next: NavButtonState; prevYear: NavButtonState; nextYear: NavButtonState; [availableView: string]: ButtonState; } interface NoEventsInfo { text: string; view: ViewApi; } interface ListDayInfo extends DateMeta { isFirst: boolean; isLast: boolean; view: ViewApi; } interface ListDayHeaderInfo extends DateMeta { view: ViewApi; } interface ListDayEventsInfo extends DateMeta { view: ViewApi; } interface ListDayHeaderInnerInfo extends DateMeta { text: string; textParts: DateTimeFormatPartWithWeek$1[]; weekdayText: string; dayNumberText: string; hasNavLink: boolean; level: number; view: ViewApi; } interface SingleMonthInfo { multiMonthColumns: number; isFirst: boolean; isLast: boolean; } type SingleMonthHeaderInfo = { isSticky: boolean; isNarrow: boolean; hasNavLink: boolean; multiMonthColumns: number; }; type EventDragStopInfo = EventDragInfo; type EventDragStartInfo = EventDragInfo; interface EventDragInfo { el: HTMLElement; event: EventApi; jsEvent: MouseEvent; view: ViewApi; } type EventResizeStartInfo = EventResizeStartStopData; type EventResizeStopInfo = EventResizeStartStopData; interface EventResizeStartStopData { el: HTMLElement; event: EventApi; jsEvent: MouseEvent; view: ViewApi; } interface EventResizeDoneInfo extends EventChangeInfo { el: HTMLElement; startDelta: Duration; endDelta: Duration; jsEvent: MouseEvent; view: ViewApi; } interface DateClickInfo extends DatePointApi { dayEl: HTMLElement; jsEvent: MouseEvent; view: ViewApi; } interface DropInfo extends DatePointApi { draggedEl: HTMLElement; jsEvent: MouseEvent; view: ViewApi; } type EventReceiveInfo = EventReceiveLeaveData; type EventLeaveInfo = EventReceiveLeaveData; interface EventReceiveLeaveData { draggedEl: HTMLElement; event: EventApi; relatedEvents: EventApi[]; revert: () => void; view: ViewApi; } interface EventApi { source: EventSourceApi | null; start: Date | null; end: Date | null; startStr: string; endStr: string; id: string; groupId: string; allDay: boolean; title: string; url: string; display: string; startEditable: boolean; durationEditable: boolean; constraint: any; overlap: boolean; allow: any; color: string; contrastColor: string; className: string; extendedProps: Dictionary; setProp(name: string, val: any): void; setExtendedProp(name: string, val: any): void; setStart(startInput: DateInput, options?: { granularity?: string; maintainDuration?: boolean; }): void; setEnd(endInput: DateInput | null, options?: { granularity?: string; }): void; setDates(startInput: DateInput, endInput: DateInput | null, options?: { allDay?: boolean; granularity?: string; }): void; moveStart(deltaInput: DurationInput): void; moveEnd(deltaInput: DurationInput): void; moveDates(deltaInput: DurationInput): void; setAllDay(allDay: boolean, options?: { maintainDuration?: boolean; }): void; formatRange(formatInput: FormatterInput): any; remove(): void; toPlainObject(settings?: { collapseExtendedProps?: boolean; }): Dictionary; toJSON(): Dictionary; } interface CalendarApi { view: ViewApi; setOption(name: OptionName, val: CalendarOptions[OptionName]): void; getOption(name: OptionName): CalendarOptions[OptionName]; getAvailableLocaleCodes(): string[]; on(handlerName: ListenerName, handler: Required[ListenerName]): void; off(handlerName: ListenerName, handler: Required[ListenerName]): void; trigger(handlerName: ListenerName, ...args: Parameters[ListenerName]>): void; changeView(viewType: string, dateOrRange?: DateRangeInput | DateInput): void; zoomTo(dateMarker: Date, viewType?: string): void; prev(): void; next(): void; prevYear(): void; nextYear(): void; today(): void; gotoDate(zonedDateInput: DateInput): void; incrementDate(deltaInput: DurationInput): void; getDate(): Date; formatDate(d: DateInput, formatter: FormatterInput): string; formatRange(d0: DateInput, d1: DateInput, settings: any): string; formatIso(d: DateInput, omitTime?: boolean): string; select(dateOrObj: DateInput | any, endDate?: DateInput): void; unselect(): void; addEvent(eventInput: EventInput, sourceInput?: EventSourceApi | string | boolean): EventApi | null; getEventById(id: string): EventApi | null; getEvents(): EventApi[]; removeAllEvents(): void; getEventSources(): EventSourceApi[]; getEventSourceById(id: string): EventSourceApi | null; addEventSource(sourceInput: EventSourceInput): EventSourceApi; removeAllEventSources(): void; refetchEvents(): void; scrollToTime(timeInput: DurationInput): void; } declare class CalendarController { private handleDateChange?; private calendarApi?; constructor(handleDateChange?: () => void); today(): void; prev(): void; next(): void; prevYear(): void; nextYear(): void; gotoDate(zonedDateInput: DateInput): void; incrementDate(duration: DurationInput): void; changeView(viewType: string): void; get view(): ViewApi | undefined; getDate(): Date | undefined; getButtonState(): ButtonStateMap; _setApi(calendarApi: CalendarApi | undefined): void; } declare class EventSourceImpl implements EventSourceApi { private context; internalEventSource: EventSource; constructor(context: CalendarContext, internalEventSource: EventSource); remove(): void; refetch(): void; get id(): string; get url(): string; get format(): string; } declare class EventImpl implements EventApi { _context: CalendarContext; _def: EventDef; _instance: EventInstance | null; constructor(context: CalendarContext, def: EventDef, instance?: EventInstance); setProp(name: string, val: any): void; setExtendedProp(name: string, val: any): void; setStart(startInput: DateInput, options?: { granularity?: string; maintainDuration?: boolean; }): void; setEnd(endInput: DateInput | null, options?: { granularity?: string; }): void; setDates(startInput: DateInput, endInput: DateInput | null, options?: { allDay?: boolean; granularity?: string; }): void; moveStart(deltaInput: DurationInput): void; moveEnd(deltaInput: DurationInput): void; moveDates(deltaInput: DurationInput): void; setAllDay(allDay: boolean, options?: { maintainDuration?: boolean; }): void; formatRange(formatInput: FormatterInput): string; mutate(mutation: EventMutation): void; remove(): void; get source(): EventSourceImpl | null; get start(): Date | null; get end(): Date | null; get startStr(): string; get endStr(): string; get id(): string; get groupId(): string; get allDay(): boolean; get title(): string; get url(): string; get display(): string; get startEditable(): boolean; get durationEditable(): boolean; get constraint(): string | EventStore; get overlap(): boolean; get allow(): AllowFunc; get color(): string; get contrastColor(): string; get className(): string; get extendedProps(): Dictionary; toPlainObject(settings?: { collapseExtendedProps?: boolean; }): Dictionary; toJSON(): Dictionary; } interface EventRenderRange extends EventTuple { ui: EventUi; range: EventInstanceRange; isStart: boolean; isEnd: boolean; } interface EventTextInfo { event: EventApi; timeText: string; isNarrow: boolean; isShort: boolean; } interface EventDisplayInfo extends EventTextInfo { event: EventImpl; color: string; contrastColor: string; isDraggable: boolean; isStartResizable: boolean; isEndResizable: boolean; isMirror: boolean; isStart: boolean; isEnd: boolean; isFirst: boolean; isLast: boolean; isPast: boolean; isFuture: boolean; isToday: boolean; isSelected: boolean; isDragging: boolean; isResizing: boolean; isInteractive: boolean; view: ViewApi; level: number; timeClass: string; titleClass: string; options: { eventOverlap: boolean; }; } interface OpenDateSpanInput { start?: DateInput; end?: DateInput; allDay?: boolean; [otherProp: string]: any; } interface DateSpanInput extends OpenDateSpanInput { start: DateInput; end: DateInput; } interface OpenDateSpan { range: OpenDateRange; allDay: boolean; instantStartMs?: number; instantEndMs?: number; [otherProp: string]: any; } interface DateSpan extends OpenDateSpan { range: DateRange; } interface RangeApi { start: Date; end: Date; startStr: string; endStr: string; } interface DateSpanApi extends RangeApi { allDay: boolean; } interface RangeApiWithTimeZone extends RangeApi { timeZone: string; } interface DatePointApi { date: Date; dateStr: string; allDay: boolean; } type ConstraintInput = 'businessHours' | string | EventInput | EventInput[]; type Constraint = 'businessHours' | string | EventStore | false; type OverlapFunc = ((stillEvent: EventImpl, movingEvent: EventImpl | null) => boolean); type AllowFunc = (span: DateSpanApi, movingEvent: EventImpl | null) => boolean; type isPropsValidTester = (props: SplittableProps, context: CalendarContext) => boolean; declare const EVENT_UI_REFINERS: { display: StringConstructor; editable: BooleanConstructor; startEditable: BooleanConstructor; durationEditable: BooleanConstructor; constraint: Identity; overlap: Identity; allow: Identity; class: typeof refineClassName; className: typeof refineClassName; color: StringConstructor; contrastColor: StringConstructor; }; type BuiltInEventUiRefiners = typeof EVENT_UI_REFINERS; interface EventUiRefiners extends BuiltInEventUiRefiners { } type EventUiInput = RawOptionsFromRefiners>; type EventUiRefined = RefinedOptionsFromRefiners>; interface EventUi { display: string | null; startEditable: boolean | null; durationEditable: boolean | null; constraints: Constraint[]; overlap: boolean | null; allows: AllowFunc[]; color: string; contrastColor: string; className: string; } type EventUiHash = { [defId: string]: EventUi; }; interface EventDef { defId: string; sourceId: string; publicId: string; groupId: string; allDay: boolean; hasEnd: boolean; recurringDef: { typeId: number; typeData: any; duration: Duration | null; } | null; title: string; url: string; ui: EventUi; interactive?: boolean; extendedProps: Dictionary; } type EventDefHash = { [defId: string]: EventDef; }; interface EventStore { defs: EventDefHash; instances: EventInstanceHash; } interface EventMutation { datesDelta?: Duration; startDelta?: Duration; endDelta?: Duration; instantDatesDeltaMs?: number; instantStartDeltaMs?: number; instantEndDeltaMs?: number; standardProps?: any; extendedProps?: any; } type eventDefMutationApplier = (eventDef: EventDef, mutation: EventMutation, context: CalendarContext) => void; type eventDragMutationMassager = (mutation: EventMutation, hit0: Hit, hit1: Hit) => void; type EventDropTransformers = (mutation: EventMutation, context: CalendarContext) => Dictionary; type eventIsDraggableTransformer = (val: boolean, eventDef: EventDef, eventUi: EventUi, context: CalendarContext) => boolean; type dateSelectionJoinTransformer = (hit0: Hit, hit1: Hit) => any; interface DragMeta { startTime: Duration | null; duration: Duration | null; create: boolean; sourceId: string; leftoverProps: Dictionary; } type ExternalDefTransform = (dateSpan: DateSpan, dragMeta: DragMeta) => any; interface EventSourceDef { ignoreRange?: boolean; parseMeta: (refined: EventSourceRefined) => Meta | null; fetch: EventSourceFetcher; } interface ParsedRecurring { typeData: RecurringData; allDayGuess: boolean | null; duration: Duration | null; } interface RecurringType { parse: (refined: EventRefined, dateEnv: DateEnv) => ParsedRecurring | null; expand: (typeData: any, framingRange: DateRange, dateEnv: DateEnv) => DateMarker[]; } interface PluginInput { name: string; premiumReleaseDate?: string; deps?: PluginInput[]; reducers?: ReducerFunc[]; isLoadingFuncs?: ((state: Dictionary) => boolean)[]; contextInit?: (context: CalendarContext) => void; eventRefiners?: GenericRefiners; eventDefMemberAdders?: EventDefMemberAdder[]; eventSourceRefiners?: GenericRefiners; isDraggableTransformers?: eventIsDraggableTransformer[]; eventDragMutationMassagers?: eventDragMutationMassager[]; eventDefMutationAppliers?: eventDefMutationApplier[]; dateSelectionTransformers?: dateSelectionJoinTransformer[]; datePointTransforms?: DatePointTransform[]; dateSpanTransforms?: DateSpanTransform[]; views?: ViewConfigInputHash; viewPropsTransformers?: ViewPropsTransformerClass[]; isPropsValid?: isPropsValidTester; externalDefTransforms?: ExternalDefTransform[]; viewContainerAppends?: ViewContainerAppend[]; eventDropTransformers?: EventDropTransformers[]; componentInteractions?: InteractionClass[]; calendarInteractions?: CalendarInteractionClass[]; eventSourceDefs?: EventSourceDef[]; cmdFormatter?: CmdDateFormatterFunc; recurringTypes?: RecurringType[]; initialView?: string; elementDraggingImpl?: ElementDraggingClass; optionChangeHandlers?: OptionChangeHandlerMap; scrollerSyncerClass?: ScrollerSyncerClass; listenerRefiners?: GenericListenerRefiners; optionRefiners?: GenericRefiners; optionDefaults?: CalendarOptions; propSetHandlers?: { [propName: string]: (val: any, context: CalendarData) => void; }; } interface PluginHooks { premiumReleaseDate: Date | undefined; reducers: ReducerFunc[]; isLoadingFuncs: ((state: Dictionary) => boolean)[]; contextInit: ((context: CalendarContext) => void)[]; eventRefiners: GenericRefiners; eventDefMemberAdders: EventDefMemberAdder[]; eventSourceRefiners: GenericRefiners; isDraggableTransformers: eventIsDraggableTransformer[]; eventDragMutationMassagers: eventDragMutationMassager[]; eventDefMutationAppliers: eventDefMutationApplier[]; dateSelectionTransformers: dateSelectionJoinTransformer[]; datePointTransforms: DatePointTransform[]; dateSpanTransforms: DateSpanTransform[]; views: ViewConfigInputHash; viewPropsTransformers: ViewPropsTransformerClass[]; isPropsValid: isPropsValidTester | null; externalDefTransforms: ExternalDefTransform[]; viewContainerAppends: ViewContainerAppend[]; eventDropTransformers: EventDropTransformers[]; componentInteractions: InteractionClass[]; calendarInteractions: CalendarInteractionClass[]; eventSourceDefs: EventSourceDef[]; cmdFormatter?: CmdDateFormatterFunc; recurringTypes: RecurringType[]; initialView: string; elementDraggingImpl?: ElementDraggingClass; optionChangeHandlers: OptionChangeHandlerMap; scrollerSyncerClass: ScrollerSyncerClass | null; listenerRefiners: GenericListenerRefiners; optionRefiners: GenericRefiners; optionDefaults: CalendarOptions[]; propSetHandlers: { [propName: string]: (val: any, context: CalendarData) => void; }; } type ViewPropsTransformerClass = new () => ViewPropsTransformer; interface ViewPropsTransformer { transform(viewProps: ViewProps, calendarProps: CalendarContentProps): any; } type ViewContainerAppend = (context: CalendarContext) => ReactNode; interface CalendarContext { nowManager: CalendarNowManager; dateEnv: DateEnv; options: BaseOptionsRefined; pluginHooks: PluginHooks; emitter: Emitter>; dispatch(action: Action): void; getCurrentData(): CalendarData; calendarApi: CalendarApiImpl; } declare const EVENT_REFINERS: { extendedProps: Identity; start: Identity; end: Identity; date: Identity; allDay: BooleanConstructor; id: StringConstructor; groupId: StringConstructor; title: StringConstructor; url: StringConstructor; interactive: BooleanConstructor; }; type BuiltInEventRefiners = typeof EVENT_REFINERS; type EventInput = EventUiInput & RawOptionsFromRefiners> & // Required hack { [extendedProp: string]: any; }; type EventRefined = EventUiRefined & RefinedOptionsFromRefiners>; interface EventTuple { def: EventDef; instance: EventInstance | null; } type EventInputTransformer = (input: EventInput) => EventInput; type EventDefMemberAdder = (refined: EventRefined) => Partial; type Action = { type: 'IDLE'; } | // hack { type: 'UPDATE_NOW'; } | { type: 'SET_OPTION'; optionName: string; rawOptionValue: any; } | // TODO: how to link this to CalendarOptions? { type: 'RESET_OPTIONS'; } | { type: 'PREV'; } | { type: 'NEXT'; } | { type: 'CHANGE_DATE'; dateMarker: DateMarker; } | { type: 'CHANGE_VIEW_TYPE'; viewType: string; dateMarker?: DateMarker; } | { type: 'SELECT_DATES'; selection: DateSpan; } | { type: 'UNSELECT_DATES'; } | { type: 'SELECT_EVENT'; eventInstanceId: string; } | { type: 'UNSELECT_EVENT'; } | { type: 'SET_EVENT_DRAG'; state: EventInteractionState; } | { type: 'UNSET_EVENT_DRAG'; } | { type: 'SET_EVENT_RESIZE'; state: EventInteractionState; } | { type: 'UNSET_EVENT_RESIZE'; } | { type: 'ADD_EVENT_SOURCES'; sources: EventSource[]; } | { type: 'REMOVE_EVENT_SOURCE'; sourceId: string; } | { type: 'REMOVE_ALL_EVENT_SOURCES'; } | { type: 'FETCH_EVENT_SOURCES'; sourceIds?: string[]; isRefetch?: boolean; } | // if no sourceIds, fetch all { type: 'RECEIVE_EVENTS'; sourceId: string; fetchId: string; fetchRange: DateRange | null; rawEvents: EventInput[]; } | { type: 'RECEIVE_EVENT_ERROR'; sourceId: string; fetchId: string; fetchRange: DateRange | null; error: Error; } | // need all these? { type: 'ADD_EVENTS'; eventStore: EventStore; } | { type: 'RESET_EVENTS'; eventStore: EventStore; } | { type: 'RESET_RAW_EVENTS'; rawEvents: EventInput[]; sourceId: string; } | { type: 'MERGE_EVENTS'; eventStore: EventStore; } | { type: 'REMOVE_EVENTS'; eventStore: EventStore; } | { type: 'REMOVE_ALL_EVENTS'; }; interface CalendarDataManagerConfig { calendarApi: CalendarApiImpl; onDataChange?: (data: CalendarData, actionsComplete: Action[]) => void; } type ReducerFunc = (currentState: Dictionary | undefined, action: Action | undefined, context: CalendarContext & CalendarDataManagerState) => Dictionary; declare class CalendarDataManager { private computeCurrentViewData; private organizeRawLocales; private buildLocale; private buildPluginHooks; private buildDateEnv; private parseToolbars; private buildViewSpecs; private buildDateProfileGenerator; private buildViewApi; private buildViewUiProps; private buildEventUiBySource; private buildEventUiBases; private parseContextBusinessHours; private buildToolbarProps; private buildTitle; private nowManager; private nowTimer; private isDrainingActionQueue; private actionQueue; private optionOverrides; private config; private state; private data; emitter: Emitter>; currentCalendarOptionsRefiners: any; currentCalendarOptionsInput: CalendarOptions; private currentCalendarOptionsRefined; private currentViewOptionsInput; private currentViewOptionsRefined; private stableOptionOverrides; private stableDynamicOptionOverrides; private stableCalendarOptionsData; private optionsForRefining; private optionsForHandling; constructor(config: CalendarDataManagerConfig); destroy(): void; update(optionOverrides: CalendarOptions): CalendarData; resetOptions(optionOverrides: CalendarOptions, changedOptionNames?: string[]): void; getCurrentData: () => CalendarData; private handleNowChange; dispatch: (action: Action) => void; private drainActionQueue; private reduce; private computeOptionsData; private processRawCalendarOptions; private _computeCurrentViewData; private processRawViewOptions; } declare class CalendarApiImpl implements CalendarApi { currentDataManager?: CalendarDataManager; getCurrentData(): CalendarData; dispatch(action: Action): void; get view(): ViewImpl; batchRendering(callback: () => void): void; setOption(name: OptionName, val: CalendarOptions[OptionName]): void; getOption(name: OptionName): CalendarOptions[OptionName]; getAvailableLocaleCodes(): string[]; on(handlerName: ListenerName, handler: Required[ListenerName]): void; off(handlerName: ListenerName, handler: Required[ListenerName]): void; trigger(handlerName: ListenerName, ...args: Parameters[ListenerName]>): void; changeView(viewType: string, dateOrRange?: DateRangeInput | DateInput): void; zoomTo(dateMarker: Date, viewType?: string): void; private getUnitViewSpec; prev(): void; next(): void; prevYear(): void; nextYear(): void; today(): void; gotoDate(zonedDateInput: DateInput): void; incrementDate(deltaInput: DurationInput): void; getDate(): Date; formatDate(d: DateInput, formatter: FormatterInput): string; formatRange(d0: DateInput, d1: DateInput, settings: any): string; formatIso(d: DateInput, omitTime?: boolean): string; select(dateOrObj: DateInput | any, endDate?: DateInput): void; unselect(pev?: PointerDragEvent): void; addEvent(eventInput: EventInput, sourceInput?: EventSourceImpl | string | boolean): EventImpl | null; private triggerEventAdd; getEventById(id: string): EventImpl | null; getEvents(): EventImpl[]; removeAllEvents(): void; getEventSources(): EventSourceImpl[]; getEventSourceById(id: string): EventSourceImpl | null; addEventSource(sourceInput: EventSourceInput): EventSourceImpl; removeAllEventSources(): void; refetchEvents(): void; scrollToTime(timeInput: DurationInput): void; getButtonState(): ButtonStateMap; } interface DateProfile { currentDate: DateMarker; isValid: boolean; validRange: OpenDateRange; renderRange: DateRange; activeRange: DateRange | null; currentRange: DateRange; currentRangeUnit: string; isRangeAllDay: boolean; dateIncrement: Duration; slotMinTime: Duration; slotMaxTime: Duration; } interface DateProfileGeneratorProps extends DateProfileOptions { dateProfileGeneratorClass: DateProfileGeneratorClass; duration: Duration; durationUnit: string; usesMinMaxTime: boolean; dateEnv: DateEnv; calendarApi: CalendarApiImpl; } interface DateProfileOptions { slotMinTime: Duration; slotMaxTime: Duration; showNonCurrentDates?: boolean; dayCount?: number; dateAlignment?: string; dateIncrement?: Duration; hiddenDays?: number[]; weekends?: boolean; validRangeInput?: DateRangeInput | ((this: CalendarApiImpl, nowDate: Date) => DateRangeInput); visibleRangeInput?: DateRangeInput | ((this: CalendarApiImpl, nowDate: Date) => DateRangeInput); fixedWeekCount?: boolean; } type DateProfileGeneratorClass = { new (props: DateProfileGeneratorProps): DateProfileGenerator; }; declare class DateProfileGenerator { protected props: DateProfileGeneratorProps; isHiddenDayHash: boolean[]; constructor(props: DateProfileGeneratorProps); buildPrev(currentDateProfile: DateProfile, currentDate: DateMarker, nowDate: DateMarker, forceToValid?: boolean): DateProfile; buildNext(currentDateProfile: DateProfile, currentDate: DateMarker, nowDate: DateMarker, forceToValid?: boolean): DateProfile; build(currentDate: DateMarker, nowDate: DateMarker, direction?: any, forceToValid?: boolean): DateProfile; buildValidRange(nowDate: DateMarker): OpenDateRange; buildCurrentRangeInfo(date: DateMarker, direction: any): { duration: any; unit: any; range: any; }; getFallbackDuration(): Duration; adjustActiveRange(range: DateRange): { start: Date; end: Date; }; buildRangeFromDuration(date: DateMarker, direction: any, duration: Duration, unit: any): any; buildRangeFromDayCount(date: DateMarker, direction: any, dayCount: any): { start: Date; end: Date; }; buildCustomVisibleRange(date: DateMarker): DateRange; buildRenderRange(currentRange: DateRange, currentRangeUnit: any, isRangeAllDay: any): DateRange; buildDateIncrement(fallback: any): Duration; refineRange(rangeInput: DateRangeInput | undefined): DateRange | null; initHiddenDays(): void; trimHiddenDays(range: DateRange): DateRange | null; isHiddenDay(day: any): boolean; skipHiddenDays(date: DateMarker, inc?: number, isExclusive?: boolean): Date; } declare const BASE_OPTION_REFINERS: { navLinkDayClick: Identity void)>; navLinkWeekClick: Identity void)>; duration: typeof createDuration; buttons: Identity>; toolbarElements: Identity<{ [elementName: string]: ToolbarElementInput; }>; prevText: StringConstructor; nextText: StringConstructor; prevYearText: StringConstructor; nextYearText: StringConstructor; todayText: StringConstructor; yearText: StringConstructor; monthText: StringConstructor; weekTextLong: StringConstructor; weekTextShort: StringConstructor; dayText: StringConstructor; listText: Identity; todayHint: Identity string)>; prevHint: Identity string)>; nextHint: Identity string)>; buttonDisplay: Identity; buttonGroupClass: Identity>; buttonClass: Identity>; defaultAllDayEventDuration: typeof createDuration; defaultTimedEventDuration: typeof createDuration; nextDayThreshold: typeof createDuration; scrollTime: typeof createDuration; scrollTimeReset: BooleanConstructor; slotMinTime: typeof createDuration; slotMaxTime: typeof createDuration; popoverFormat: typeof createFormatter; slotDuration: typeof createDuration; snapDuration: typeof createDuration; headerToolbar: Identity; footerToolbar: Identity; forceEventDuration: BooleanConstructor; dayLaneClass: Identity>; dayLaneInnerClass: Identity>; dayLaneDidMount: Identity>; dayLaneWillUnmount: Identity>; initialView: StringConstructor; aspectRatio: NumberConstructor; weekends: BooleanConstructor; weekNumberCalculation: Identity; weekNumbers: BooleanConstructor; weekNumberHeaderClass: Identity>; weekNumberHeaderInnerClass: Identity>; weekNumberHeaderContent: Identity>; weekNumberHeaderDidMount: Identity>; weekNumberHeaderWillUnmount: Identity>; inlineWeekNumberClass: Identity>; inlineWeekNumberContent: Identity>; inlineWeekNumberDidMount: Identity>; inlineWeekNumberWillUnmount: Identity>; editable: BooleanConstructor; controller: Identity; nowIndicator: BooleanConstructor; nowIndicatorSnap: Identity; nowIndicatorHeaderClass: Identity>; nowIndicatorHeaderContent: Identity>; nowIndicatorHeaderDidMount: Identity>; nowIndicatorHeaderWillUnmount: Identity>; nowIndicatorDotClass: typeof refineClassName; nowIndicatorLineClass: Identity>; nowIndicatorLineContent: Identity>; nowIndicatorLineDidMount: Identity>; nowIndicatorLineWillUnmount: Identity>; showNonCurrentDates: BooleanConstructor; lazyFetching: BooleanConstructor; startParam: StringConstructor; endParam: StringConstructor; timeZoneParam: StringConstructor; timeZone: StringConstructor; locales: Identity; locale: Identity; dragRevertDuration: NumberConstructor; dragScroll: BooleanConstructor; allDayMaintainDuration: BooleanConstructor; unselectAuto: BooleanConstructor; dropAccept: Identity boolean)>; eventOrder: typeof parseFieldSpecs; eventOrderStrict: BooleanConstructor; eventSlicing: BooleanConstructor; eventPrintLayout: Identity<"auto" | "stack" | "grid">; longPressDelay: NumberConstructor; eventDragMinDistance: NumberConstructor; expandRows: BooleanConstructor; height: Identity; contentHeight: Identity; direction: Identity<"ltr" | "rtl">; colorScheme: Identity<"light" | "dark" | string | undefined>; weekNumberFormat: typeof createFormatter; eventResizableFromStart: BooleanConstructor; displayEventTime: BooleanConstructor; displayEventEnd: BooleanConstructor; progressiveEventRendering: BooleanConstructor; businessHours: Identity; initialDate: Identity; now: Identity DateInput)>; eventDataTransform: Identity; tableHeaderSticky: Identity; footerScrollbarSticky: Identity; defaultAllDay: BooleanConstructor; eventSourceFailure: Identity<(this: CalendarApi, error: any) => void>; eventSourceSuccess: Identity<(this: CalendarApi, eventsInput: EventInput[], response?: Response) => EventInput[] | void>; eventDisplay: StringConstructor; eventStartEditable: BooleanConstructor; eventDurationEditable: BooleanConstructor; eventOverlap: Identity; eventConstraint: Identity; eventAllow: Identity; eventColor: StringConstructor; eventContrastColor: StringConstructor; eventDidMount: Identity>; eventWillUnmount: Identity>; eventContent: Identity>; eventClass: Identity>; eventInnerClass: Identity>; eventTimeClass: Identity>; eventTitleClass: Identity>; eventBeforeClass: Identity>; eventAfterClass: Identity>; listItemEventClass: Identity>; listItemEventInnerClass: Identity>; listItemEventTimeClass: Identity>; listItemEventTitleClass: Identity>; listItemEventBeforeClass: Identity>; listItemEventAfterClass: Identity>; blockEventClass: Identity>; blockEventInnerClass: Identity>; blockEventTimeClass: Identity>; blockEventTitleClass: Identity>; blockEventBeforeClass: Identity>; blockEventAfterClass: Identity>; rowEventClass: Identity>; rowEventInnerClass: Identity>; rowEventTimeClass: Identity>; rowEventTitleClass: Identity>; rowEventTitleSticky: BooleanConstructor; rowEventBeforeClass: Identity>; rowEventBeforeContent: Identity>; rowEventAfterClass: Identity>; rowEventAfterContent: Identity>; columnEventClass: Identity>; columnEventInnerClass: Identity>; columnEventTimeClass: Identity>; columnEventTitleClass: Identity>; columnEventTitleSticky: BooleanConstructor; columnEventBeforeClass: Identity>; columnEventAfterClass: Identity>; backgroundEventClass: Identity>; backgroundEventDidMount: Identity>; backgroundEventWillUnmount: Identity>; backgroundEventContent: Identity>; backgroundEventInnerClass: Identity>; backgroundEventTitleClass: Identity>; backgroundEventColor: StringConstructor; selectConstraint: Identity; selectOverlap: Identity; selectAllow: Identity; droppable: BooleanConstructor; unselectCancel: StringConstructor; slotHeaderFormat: Identity; slotLaneClass: Identity>; slotLaneDidMount: Identity>; slotLaneWillUnmount: Identity>; slotHeaderClass: Identity>; slotHeaderInnerClass: Identity>; slotHeaderContent: Identity>; slotHeaderDidMount: Identity>; slotHeaderWillUnmount: Identity>; slotHeaderAlign: Identity<"start" | "center" | "end" | ((info: { level: number; isTime: boolean; }) => "start" | "center" | "end")>; slotHeaderSticky: Identity; slotHeaderRowClass: typeof refineClassName; slotHeaderDividerClass: Identity>; dayMaxEvents: Identity; dayMaxEventRows: Identity; dayMinWidth: NumberConstructor; slotHeaderInterval: typeof createDuration; dayHeaderClass: Identity>; dayHeaderInnerClass: Identity>; dayHeaderContent: Identity>; dayHeaderDidMount: Identity>; dayHeaderWillUnmount: Identity>; dayHeaderAlign: Identity<"start" | "center" | "end" | ((info: { level: number; inPopover: boolean; isNarrow: boolean; }) => "start" | "center" | "end")>; _dayHeaderSticky: Identity; dayHeaderRowClass: typeof refineClassName; dayHeaderDividerClass: Identity>; dayRowClass: typeof refineClassName; dayCellDidMount: Identity>; dayCellWillUnmount: Identity>; dayCellClass: Identity>; dayCellInnerClass: Identity>; dayCellTopContent: Identity>; dayCellTopClass: Identity>; dayCellTopInnerClass: Identity>; dayCellBottomClass: Identity>; allDaySlot: BooleanConstructor; allDayText: StringConstructor; allDayHeaderClass: Identity>; allDayHeaderInnerClass: Identity>; allDayHeaderContent: Identity>; allDayHeaderDidMount: Identity>; allDayHeaderWillUnmount: Identity>; timedText: StringConstructor; slotMinWidth: NumberConstructor; slotMinHeight: NumberConstructor; navLinks: BooleanConstructor; eventTimeFormat: typeof createFormatter; rerenderDelay: NumberConstructor; moreLinkText: Identity string)>; moreLinkHint: Identity string)>; selectMinDistance: NumberConstructor; selectable: BooleanConstructor; selectLongPressDelay: NumberConstructor; eventLongPressDelay: NumberConstructor; selectMirror: BooleanConstructor; eventMaxStack: NumberConstructor; eventMinHeight: NumberConstructor; eventMinWidth: NumberConstructor; eventShortHeight: NumberConstructor; slotEventOverlap: BooleanConstructor; firstDay: NumberConstructor; dayCount: NumberConstructor; dateAlignment: StringConstructor; dateIncrement: typeof createDuration; hiddenDays: Identity; fixedWeekCount: BooleanConstructor; validRange: Identity DateRangeInput)>; visibleRange: Identity DateRangeInput)>; titleFormat: Identity; eventInteractive: BooleanConstructor; noEventsText: StringConstructor; viewHint: Identity string)>; viewChangeHint: StringConstructor; navLinkHint: Identity string)>; closeHint: StringConstructor; eventsHint: StringConstructor; headingLevel: NumberConstructor; moreLinkClick: Identity; moreLinkContent: Identity>; moreLinkDidMount: Identity>; moreLinkWillUnmount: Identity>; moreLinkClass: Identity>; moreLinkInnerClass: Identity>; rowMoreLinkClass: Identity>; rowMoreLinkInnerClass: Identity>; columnMoreLinkClass: Identity>; columnMoreLinkInnerClass: Identity>; navLinkClass: typeof refineClassName; monthStartFormat: typeof createFormatter; dayCellFormat: typeof createFormatter; handleCustomRendering: Identity>; customRenderingMetaMap: Identity<{ [optionName: string]: any; }>; popoverClass: typeof refineClassName; popoverCloseClass: typeof refineClassName; popoverCloseContent: Identity>; dayNarrowWidth: NumberConstructor; borderless: BooleanConstructor; borderlessX: BooleanConstructor; borderlessTop: BooleanConstructor; borderlessBottom: BooleanConstructor; fillerClass: Identity>; headerToolbarClass: Identity>; footerToolbarClass: Identity>; toolbarClass: Identity>; toolbarSectionClass: Identity>; toolbarTitleClass: typeof refineClassName; tableClass: Identity>; tableHeaderClass: Identity>; tableBodyClass: Identity>; nonBusinessHoursClass: typeof refineClassName; highlightClass: typeof refineClassName; dayHeaders: BooleanConstructor; dayHeaderFormat: typeof createFormatter; allDayDividerClass: typeof refineClassName; listDaysClass: typeof refineClassName; listDayClass: Identity>; listDayFormat: typeof createFalsableFormatter; listDayAltFormat: typeof createFalsableFormatter; listDayHeaderDidMount: Identity>; listDayHeaderWillUnmount: Identity>; listDayHeaderClass: Identity>; listDayHeaderInnerClass: Identity>; listDayHeaderContent: Identity>; listDayBodyClass: Identity>; noEventsClass: Identity>; noEventsInnerClass: Identity>; noEventsContent: Identity>; noEventsDidMount: Identity>; noEventsWillUnmount: Identity>; multiMonthMaxColumns: NumberConstructor; singleMonthMinWidth: NumberConstructor; singleMonthTitleFormat: typeof createFormatter; singleMonthDidMount: Identity>; singleMonthWillUnmount: Identity>; singleMonthClass: Identity>; singleMonthHeaderClass: Identity>; singleMonthHeaderInnerClass: Identity>; }; type BaseOptionRefiners = typeof BASE_OPTION_REFINERS; declare module '@fullcalendar/core/protected-api' { interface EventSourceOptions extends RawOptionsFromRefiners { } interface EventSourceOptionsRefined extends RefinedOptionsFromRefiners { } } declare module '@fullcalendar/core/protected-api' { interface EventRefiners extends BuiltInEventRefiners { } } declare module '@fullcalendar/core/protected-api' { interface BaseOptions extends RawOptionsFromRefiners { } interface BaseOptionsRefined extends RefinedOptionsFromRefiners { } } declare const CALENDAR_LISTENER_REFINERS: { datesSet: Identity<(info: DatesSetInfo) => void>; eventsSet: Identity<(events: EventApi[]) => void>; eventAdd: Identity<(info: EventAddInfo) => void>; eventChange: Identity<(info: EventChangeInfo) => void>; eventRemove: Identity<(info: EventRemoveInfo) => void>; eventClick: Identity<(info: EventClickInfo) => void>; eventMouseEnter: Identity<(info: EventHoveringInfo) => void>; eventMouseLeave: Identity<(info: EventHoveringInfo) => void>; select: Identity<(info: DateSelectInfo) => void>; unselect: Identity<(info: DateUnselectInfo) => void>; loading: Identity<(isLoading: boolean) => void>; _unmount: Identity<() => void>; _beforeprint: Identity<() => void>; _afterprint: Identity<() => void>; _noDateSelect: Identity<() => void>; _noEventDrop: Identity<() => void>; _noEventResize: Identity<() => void>; _timeScrollRequest: Identity<(time: Duration) => void>; dateClick: Identity<(info: DateClickInfo) => void>; eventDragStart: Identity<(info: EventDragStartInfo) => void>; eventDragStop: Identity<(info: EventDragStopInfo) => void>; eventDrop: Identity<(info: EventDropInfo) => void>; eventResizeStart: Identity<(info: EventResizeStartInfo) => void>; eventResizeStop: Identity<(info: EventResizeStopInfo) => void>; eventResize: Identity<(info: EventResizeDoneInfo) => void>; drop: Identity<(info: DropInfo) => void>; eventReceive: Identity<(info: EventReceiveInfo) => void>; eventLeave: Identity<(info: EventLeaveInfo) => void>; }; type CalendarListenerRefiners = typeof CALENDAR_LISTENER_REFINERS; interface CalendarListeners extends RawOptionsFromRefiners { } interface CalendarListenersRefined extends RefinedOptionsFromRefiners { } declare const CALENDAR_ONLY_OPTION_REFINERS: { class: Identity>; className: Identity>; viewClass: Identity>; viewDidMount: Identity>; viewWillUnmount: Identity>; views: Identity<{ [viewId: string]: ViewOptions; }>; plugins: Identity; initialEvents: Identity; events: Identity; eventSources: Identity; }; type CalendarOnlyOptionRefiners = typeof CALENDAR_ONLY_OPTION_REFINERS; type CalendarOnlyOptions = RawOptionsFromRefiners; type CalendarOnlyOptionsRefined = RefinedOptionsFromRefiners; declare const VIEW_ONLY_OPTION_REFINERS: { type: StringConstructor; component: Identity; class: Identity>; className: Identity>; content: Identity>; didMount: Identity>; willUnmount: Identity>; buttonTextKey: StringConstructor; dateProfileGeneratorClass: Identity; usesMinMaxTime: BooleanConstructor; disallowAmbigTitle: BooleanConstructor; }; type ViewOnlyRefiners = typeof VIEW_ONLY_OPTION_REFINERS; type ViewOnlyOptions = RawOptionsFromRefiners; type ViewOnlyOptionsRefined = RefinedOptionsFromRefiners; type ViewOptions = BaseOptions & CalendarListeners & ViewOnlyOptions; type ViewOptionsRefined = BaseOptionsRefined & CalendarListenersRefined & ViewOnlyOptionsRefined; type CalendarOptions = BaseOptions & CalendarListeners & CalendarOnlyOptions; type CalendarOptionsRefined = BaseOptionsRefined & CalendarListenersRefined & CalendarOnlyOptionsRefined; type GenericRefiners = { [propName: string]: (input: any, propName: string) => any; }; type GenericListenerRefiners = { [listenerName: string]: Identity<(this: CalendarApi, ...args: any[]) => void>; }; type Dictionary = Record; type Identity = (raw: T) => T; declare function createFalsableFormatter(input: FormatterInput | false): DateFormatter; type LocaleSingularArg = LocaleCodeArg | LocaleInput; interface LocaleInput extends CalendarOptions { code: string; } export { EventRenderRange as $, AllDayHeaderInfo as A, BusinessHoursInput as B, CalendarApiImpl as C, DateClickInfo as D, DatesSetInfo as E, DayCellInfo as F, DayHeaderDividerInfo as G, DayHeaderInfo as H, DayLaneInfo as I, DidMountHandler as J, DropInfo as K, LocaleInput as L, EventAddInfo as M, EventApi as N, EventChangeInfo as O, PluginInput as P, EventClickInfo as Q, EventDisplayInfo as R, EventDragStartInfo as S, EventDragStopInfo as T, EventDropInfo as U, EventHoveringInfo as V, EventInput as W, EventInputTransformer as X, EventLeaveInfo as Y, EventReceiveInfo as Z, EventRemoveInfo as _, CalendarOptions as a, EventResizeDoneInfo as a0, EventResizeStartInfo as a1, EventResizeStopInfo as a2, EventSegment as a3, EventSourceApi as a4, EventSourceFunc as a5, EventSourceFuncInfo as a6, EventSourceInput as a7, EventTextInfo as a8, FormatterInput as a9, ViewApi as aA, ViewComponentType as aB, ViewContentInfo as aC, ViewDisplayInfo as aD, ViewOptions as aE, WeekNumberHeaderInfo as aF, WillUnmountHandler as aG, sliceEvents as aH, InlineWeekNumberInfo as aa, ListDayHeaderInfo as ab, ListDayHeaderInnerInfo as ac, ListDayInfo as ad, LocaleSingularArg as ae, MoreLinkAction as af, MoreLinkHandler as ag, MoreLinkInfo$1 as ah, MoreLinkSimpleAction as ai, MountInfo as aj, NavButtonState as ak, NoEventsInfo as al, NowIndicatorHeaderInfo as am, NowIndicatorLineInfo as an, OverlapFunc as ao, SingleMonthHeaderInfo as ap, SingleMonthInfo as aq, SlotHeaderInfo as ar, SlotLaneInfo as as, TableBodyInfo as at, TableDisplayInfo as au, TableHeaderInfo as av, ToolbarElementInput as aw, ToolbarInfo as ax, ToolbarInput as ay, ToolbarSectionInfo as az, CalendarApi as b, AllowFunc as c, ButtonDisplay as d, ButtonGroupInfo as e, ButtonInfo as f, ButtonInput as g, ButtonState as h, ButtonStateMap as i, CalendarController as j, CalendarDisplayInfo as k, CalendarListeners as l, ClassNameGenerator as m, ClassNameInput as n, ConstraintInput as o, ContentGenerator as p, CssDimValue as q, CustomRenderingHandler as r, CustomRenderingStore as s, DatePointApi as t, DateSelectInfo as u, DateSelectionApi as v, DateSpanApi as w, DateSpanInput as x, DateTimeFormatPartWithWeek as y, DateUnselectInfo as z };