import type { CalendarDate, CalendarDateTime, ZonedDateTime } from '@internationalized/date'; import { type CalendarProps as RACCalendarProps, type DatePickerProps as RACDatePickerProps } from 'react-aria-components'; import type { ApiProps, CommonProps, FieldProps } from '../types.js'; /** Represents a date with optional time and timezone components. */ export type DateValue = CalendarDate | CalendarDateTime | ZonedDateTime; /** Maps a date value to a specific subtype depending on which components it contains. */ export type MappedDateValue = T extends ZonedDateTime ? ZonedDateTime : T extends CalendarDateTime ? CalendarDateTime : T extends CalendarDate ? CalendarDate : never; export interface DatePickerProps extends CommonProps, FieldProps>, ApiProps, Pick, 'value' | 'defaultValue' | 'placeholderValue' | 'onChange' | 'isDisabled' | 'isRequired' | 'isInvalid' | 'isReadOnly' | 'autoFocus' | 'onFocus' | 'onBlur' | 'isOpen' | 'defaultOpen' | 'onOpenChange' | 'minValue' | 'maxValue' | 'isDateUnavailable' | 'granularity' | 'firstDayOfWeek' | 'autoComplete'>, Pick, 'focusedValue' | 'defaultFocusedValue'> { } /** The imperative API exposed by the `DatePicker` component. */ export interface DatePickerApi { /** Focuses the first editable segment in the input field. */ focus: () => void; } /** * Allows users to enter or select a date and time value. * * See [date picker usage guidelines](https://ui.cimpress.io/components/date-picker/). */ declare const _DatePicker: (props: DatePickerProps & import("react").RefAttributes & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null; export { _DatePicker as DatePicker }; //# sourceMappingURL=date-picker.d.ts.map