import React from 'react'; import { PropsSingle } from 'react-day-picker'; import { FieldError } from 'react-hook-form'; interface CalendarRootSingleProps extends PropsSingle { numberOfMonths?: number; classNames?: Partial>; calendarClassName?: string | null; className?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null; } interface DatePickerProps extends CalendarRootSingleProps { name: string; onChange: (event: unknown) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string; placeholder?: string; value?: string | number | Date | undefined; locale?: any; format?: string; inputClassName?: string; labelClassName?: string; errorClassName?: string; calendarClassName?: string; prepend?: React.ReactNode; prependClassName?: string; append?: React.ReactNode; appendClassName?: string; disableShrink?: boolean; disabled?: boolean; } declare const DatePicker: React.ForwardRefExoticComponent>; export { type DatePickerProps, DatePicker as default };