/** * DatePicker component props * * Minimal interface that only exposes what is necessary. * Ant Design implementation is hidden and no Ant Design-specific props are exposed. * Standard HTML div attributes are supported (passed through to the underlying DOM element). */ export interface DatePickerProps extends Omit, 'onChange' | 'value' | 'defaultValue'> { /** * Selected date values * @default today's date is setted by ant design if no value is provided */ value?: Date; /** * Callback called when date changes */ onChange?: (date?: Date) => void; /** * Date format to display in the picker * @default 'DD / MM / YYYY' */ dateFormat?: string; /** * Minimum selectable date */ minDate?: Date; /** * Maximum selectable date */ maxDate?: Date; /** * Disables the input and prevents the calendar popup from opening. * @default false */ disabled?: boolean; } /** * Type for DatePicker ref */ /** * DatePicker component * * Date picker component for selecting a date. * * **Note:** This component uses Ant Design's DatePicker component internally. * Only the props defined in DatePickerProps are allowed to prevent * dependency on Ant Design-specific features. To replace the implementation, * modify the component body below. * * @example * ```tsx * setDate(date)} * dateFormat="YYYY-MM-DD" * minDate={new Date(today.setDate(today.getDate() - 2))} * maxDate={new Date(today.setDate(today.getDate() + 3))} * /> * ``` */ declare const DatePicker: import('react').ForwardRefExoticComponent>; export default DatePicker;