import React from 'react'; import { DateValue } from '@react-types/calendar'; import { AriaDatePickerProps } from 'react-aria'; import { LabelledProps } from '../Labelled'; export type DatePickerProps = { /** Label for the field */ label: string; /** Error to display beneath the label */ error?: any; /** Adds an action to the label */ labelAction?: LabelledProps['action']; /** Visually hide the label */ labelHidden?: boolean; /** Visual required indicator, add an asterisk to label */ requiredIndicator?: boolean; /** Additional text to aide in use */ helpText?: React.ReactNode; /** Callback fired when value changes */ onChange?: (value: DateValue | null) => void; } & Omit, 'validationState' | 'onChange'> & { validationState?: 'valid' | 'invalid' | undefined; }; declare const DatePicker: React.ForwardRefExoticComponent<{ /** Label for the field */ label: string; /** Error to display beneath the label */ error?: any; /** Adds an action to the label */ labelAction?: LabelledProps["action"]; /** Visually hide the label */ labelHidden?: boolean; /** Visual required indicator, add an asterisk to label */ requiredIndicator?: boolean; /** Additional text to aide in use */ helpText?: React.ReactNode; /** Callback fired when value changes */ onChange?: (value: DateValue | null) => void; } & Omit, "onChange" | "validationState"> & { validationState?: "valid" | "invalid" | undefined; } & React.RefAttributes>; export { DatePicker };