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 CalendarProps extends CalendarRootSingleProps { name: string; onChange: (event: React.ChangeEvent) => void; error?: boolean | string | { message?: string; } | null | undefined | FieldError; label?: string; value?: Date | null; labelClassName?: string; errorClassName?: string; calendarClassName?: string; disabled?: boolean; } declare const Calendar: React.ForwardRefExoticComponent>; export { type CalendarProps, Calendar as default };