import type { Locale } from 'date-fns'; import type { CSSProperties, FocusEvent, ReactNode } from 'react'; type DateInputProps = { autoFocus?: boolean; locale?: string | Locale; disabled?: boolean; maxDate?: Date; minDate?: Date; name?: string; onBlur?: (event: FocusEvent) => void; onFocus?: (event: FocusEvent) => void; error?: string; required?: boolean; format?: (value?: Date) => string | undefined; /** * Label of the field */ label?: string; value?: Date | null; className?: string; 'data-testid'?: string; style?: CSSProperties; excludeDates?: Date[]; id?: string; labelDescription?: string; success?: string | boolean; helper?: ReactNode; size?: 'small' | 'medium' | 'large'; readOnly?: boolean; tooltip?: string; clearable?: boolean; showMonthYearPicker?: boolean; placeholder?: string; startDate?: Date | null; endDate?: Date | null; /** * Display the component as an input + a calendar popup ("text") or only as a calendar ("calendar") */ input?: 'calendar' | 'text'; selectsRange?: IsRange; 'aria-describedBy'?: string; onChange?: IsRange extends true ? (date: Date[] | [Date | null, Date | null], event?: React.SyntheticEvent) => void : (date: Date | null, event?: React.SyntheticEvent) => void; }; export declare function DateInput({ autoFocus, disabled, error, format, label, labelDescription, locale, maxDate, minDate, startDate, endDate, name, onBlur, onChange, placeholder, onFocus, required, excludeDates, value, className, id, success, helper, size, readOnly, tooltip, clearable, selectsRange, showMonthYearPicker, input, 'data-testid': dataTestId, style, 'aria-describedBy': ariaDescribedBy, }: DateInputProps): import("react").JSX.Element; export declare namespace DateInput { var displayName: string; } export {}; //# sourceMappingURL=index.d.ts.map