import React from "react"; import { UseDatepickerProps, UseMonthProps } from "@datepicker-react/hooks"; import { CalendarProps } from "./Calendar"; export type DatepickerProps = React.HTMLAttributes & { open?: boolean; onOpenChange?: (to: boolean) => void; startDate?: Date | null; endDate?: Date | null; onDateChange?: (startDate: Date | null, endDate: Date | null) => void; daterange?: boolean; datepickerProps?: UseDatepickerProps; buttonContainerProps?: React.HTMLAttributes; buttonProps?: React.ButtonHTMLAttributes; calendarProps?: CalendarProps; disableOutsideClose?: boolean; pickerOpenSide?: "left" | "right"; useMonthProps?: Partial; textInputOpenOnFocus?: boolean; }; export default function Datepicker({ open, onOpenChange, datepickerProps, startDate, endDate, onDateChange, daterange, buttonContainerProps, buttonProps, calendarProps, disableOutsideClose, pickerOpenSide, useMonthProps, textInputOpenOnFocus, ...props }: DatepickerProps): React.JSX.Element;