import { BaseProps, SizeType } from "../_utils/props.js"; import { ReactNode } from "react"; //#region src/date-picker/types.d.ts type PickerType = 'date' | 'month' | 'year'; type PanelMode = 'date' | 'month' | 'year'; type DateRangeValue = [Date | null, Date | null]; type DatePickerValue = Date | DateRangeValue | null; interface DatePickerProps extends BaseProps { /** Default date value */ defaultValue?: Date | DateRangeValue; /** Controlled date value */ value?: Date | DateRangeValue; /** Control popup visibility */ open?: boolean; /** Selection granularity */ picker?: PickerType; /** Enable range selection for date picker */ range?: boolean; /** Display format string */ format?: string; /** Disable picker */ disabled?: boolean; /** Input placeholder */ placeholder?: string; /** Show clear button */ allowClear?: boolean; /** Input size */ size?: SizeType; /** Show "Today" button */ showToday?: boolean; /** Prevent keyboard input */ inputReadOnly?: boolean; /** Function to disable specific dates */ disabledDate?: (current: Date) => boolean; /** Extra content in the footer */ renderExtraFooter?: (mode: PanelMode) => ReactNode; /** Custom suffix icon */ suffixIcon?: ReactNode; /** Callback when date changes */ onChange?: (date: DatePickerValue, dateString: string | [string, string]) => void; /** Callback when popup opens/closes */ onOpenChange?: (open: boolean) => void; /** Callback when panel mode changes */ onPanelChange?: (date: Date, mode: PanelMode) => void; } //#endregion export { DatePickerProps, DatePickerValue, DateRangeValue, PanelMode, PickerType }; //# sourceMappingURL=types.d.ts.map