import { TZDate } from '@date-fns/tz'; import type { Precision } from '../../../core/time/shared.types.js'; import type { CalendarTimeframeState, CalendarTimeframeStore, StringTimeOffset } from '../../../core/time/timeframeStore/calendar.types.js'; import { type TimeValue, type Timeframe } from '../../../core/types/time.js'; import type { CalendarProps, CalendarStrictValueType } from '../Calendar.types.js'; import type { ViewItem } from '../components/CalendarItem.js'; import { type CalendarType } from '../types/calendarConfiguration.js'; import type { FirstDayOfWeek } from '../types/shared-types.js'; /** @internal */ export interface Day { date: TZDate; isCurrentMonthDay: boolean; } /** * Get days to render in the select date view. * @internal */ export declare function getDays(activeDate: TZDate, weekStartsOn: FirstDayOfWeek): Day[]; /** * Tries to convert the given value to the proper TimeValue / Timeframe structure. If not possible it returns null. * @internal */ export declare function convertToCalendarStructure(type?: CalendarType, value?: Partial | Partial<{ from: string; to: string; }> | null | string | Date | TimeValue | CalendarTimeframeState['calendarValue'], min?: TimeValue | null, max?: TimeValue | null, precision?: CalendarProps['precision']): CalendarTimeframeState['calendarValue']; /** * Checks if the passed date is the selected date or part of the selected date range. * Depending on the selection it defines the highlightColor, the highlightType and if it is a relative timeframe. * @internal */ export declare const getHighlightingProps: (date: TZDate, selectedDate: CalendarTimeframeStore["calendarValue"], type: CalendarType, hoveredDate?: TZDate | null) => Pick; /** * Returns the number of days from the start of the week until the current date. * @internal */ export declare function getWeekStartOrEnd(indicator: 'startOfWeek' | 'endOfWeek', activeDate: TZDate): number; /** @internal */ export declare function getTimeOffsetFromInitialValue(value?: CalendarStrictValueType | { from: string | null | TimeValue; to: string | null | TimeValue; } | TimeValue, type?: CalendarType, min?: TimeValue | null, max?: TimeValue | null, precision?: Precision): StringTimeOffset;