import { TZDate } from '@date-fns/tz'; import type { TimeValue, TimeframeV2 } from '../../../core/types/time.js'; import { StringTimeOffset } from '../../forms-core/time/types.js'; import type { CalendarProps, CalendarStrictValueType, CalendarType } from '../Calendar.js'; import type { ViewItem } from '../CalendarItem.js'; import type { _Day } from '../hooks/useSelectDay.js'; import type { FirstDayOfWeek, CalendarState } from '../types/shared-types.js'; /** * 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 / TimeframeV2 structure. If not possible it returns null. * @internal */ export declare function convertToCalendarStructure(timeOffset: StringTimeOffset, type?: CalendarType, value?: CalendarStrictValueType, min?: string, max?: string, precision?: CalendarProps['precision']): TimeValue | Partial | null; /** @internal */ export declare function isCompleteSelection(type: 'single' | 'range', selectedDate?: Partial | TimeframeV2 | TimeValue | null): boolean; /** * 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, state: Pick) => 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, weekStartsOn: FirstDayOfWeek): number; /** * Returns the next position depending on the current. * @internal */ export declare function getPosition(position?: CalendarState['position'], value?: TimeValue | Partial | TimeframeV2 | null): "to" | "from" | undefined; /** * Either assigns and sanitizes the passed timeValue to the Timeframe or returns the TimeValue in case of single selection. * @internal */ export declare function getDateFromSelection(oldSelection: TimeValue | Partial | null, type: CalendarType, timeValue?: TimeValue, position?: CalendarState['position'], min?: string, max?: string, precision?: 'minutes' | 'seconds' | 'milliseconds'): TimeValue | { from: TimeValue | undefined; to: TimeValue | undefined; } | null; /** @internal */ export declare function getTimeOffsetFromInitialValue(value?: CalendarStrictValueType, type?: CalendarType, min?: TimeValue | null, max?: TimeValue | null, precision?: CalendarProps['precision']): StringTimeOffset;