import { Error } from '../../types'; import { LabelledProps } from '../Labelled'; import { DateValue } from '@react-types/calendar'; import React from 'react'; import { AriaDatePickerProps } from 'react-aria'; import { DatePickerState } from 'react-stately'; export type DatePickerProps = { /** Label for the field */ label: string; /** Error to display beneath the label */ error?: Error | boolean; /** 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; } & (DatePickerState | AriaDatePickerProps); declare const DatePicker: React.ForwardRefExoticComponent>; export { DatePicker };