import type { DateOption, Options } from 'flatpickr/dist/types/options'; import { type DateTimePickerHandle, type DateTimePickerProps } from 'react-flatpickr'; import type { Size } from '../../../../constant/size'; export type DatePickerProps = { size?: Extract; shouldFocus?: boolean; currentDate: string; datePickerOptions?: Options; destructive?: string; placeholder?: string; isEndDate?: boolean; className?: string; /** * 캘린더를 body에 포탈 마운트합니다. * overflow: auto/scroll/hidden이 적용된 스크롤 컨테이너 안에서 * 캘린더가 잘리는 문제를 해결합니다. */ portal?: boolean; onChangeDate: (date: string) => void; onValidationError?: (error: { date: Date; minDate?: DateOption; maxDate?: DateOption; violations: Array<'minDate' | 'maxDate'>; previousDate?: Date; }) => void; } & Omit; export declare const DatePicker: import("react").ForwardRefExoticComponent & import("react").RefAttributes>;