import { CalendarDate, DateDuration, DateValue } from '@internationalized/date'; export declare function multipleDuration(duration: DateDuration, times: number): { years?: number | undefined; months?: number | undefined; weeks?: number | undefined; days?: number | undefined; }; export declare function alignStart(date: CalendarDate, duration: DateDuration, minValue?: DateValue | null, maxValue?: DateValue | null): CalendarDate; export declare function constrainStart(date: CalendarDate, aligned: CalendarDate, duration: DateDuration, minValue?: DateValue | null, maxValue?: DateValue | null): CalendarDate; export declare function constrainValue(date: CalendarDate, minValue?: DateValue | null, maxValue?: DateValue | null): CalendarDate; export declare function previousAvailableDate(date: CalendarDate, minValue: DateValue, isDateUnavailable: ((date: CalendarDate) => boolean) | undefined): CalendarDate | undefined; export declare function alignEnd(date: CalendarDate, duration: DateDuration, minValue?: DateValue | null, maxValue?: DateValue | null): CalendarDate; /** * Almost copied from https://weeknumber.com/how-to/javascript * No corresponding API found in @internationalized/date package, at the time * of writing this. * Caveat: this code is based on built-in Date object, and may not be * calendar-agnostic. We don't really care about supporting different types * of calendar, so it should be fine for now. But we can look into improving * this if needed. */ export declare const getWeekNumber: (dateValue: DateValue) => number; /** * Returns an array of dates in the week index counted from the provided start date, or the first * visible date if not given. The returned array always has 7 elements, but may include null if * the date does not exist according to the calendar system. */ export declare function getDatesInWeek(weekIndex: number, from: CalendarDate, locale: string): Array; export declare function isInvalid(date: DateValue, minValue: DateValue | undefined | null, maxValue: DateValue | undefined | null): boolean;