import type { Moment } from 'moment'; import { FC } from 'react'; import type { DateRangePickerShape } from 'react-dates'; import 'react-dates/initialize'; import type { BoxPropsOf } from '../../../box'; import { CapInputSize, InputVariantColor } from '../../enums'; export type DateRangeValueType = { startDate: Moment | null; endDate: Moment | null; }; export interface DateRangeProps extends Omit, 'onChange' | 'value' | 'disabled'> { value: DateRangeValueType; onChange: (value: DateRangeValueType) => void; className?: string; variantSize?: CapInputSize; variantColor?: InputVariantColor; errorMessage?: string; isDisabled?: boolean; isInvalid?: boolean; isRequired?: boolean; isOutsideRange?: boolean; displayFormat?: DateRangePickerShape['displayFormat']; startDatePlaceholderText?: DateRangePickerShape['startDatePlaceholderText']; endDatePlaceholderText?: DateRangePickerShape['endDatePlaceholderText']; startDateId?: DateRangePickerShape['startDateId']; endDateId?: DateRangePickerShape['endDateId']; disabled?: DateRangePickerShape['disabled']; keepOpenOnDateSelect?: DateRangePickerShape['keepOpenOnDateSelect']; minDate?: DateRangePickerShape['minDate']; maxDate?: DateRangePickerShape['maxDate']; onClose?: DateRangePickerShape['onClose']; } declare const DateRange: FC; export default DateRange;