import { Moment } from 'moment'; import React from 'react'; import 'react-dates/initialize'; interface IDateRangeInputProps { /** Name of the HTML input */ name: string; /** Value of the input */ value?: { startDate: Moment | null; endDate: Moment | null; }; /** Start Date of the input */ startDate?: Moment | null; /** End Date of the input */ endDate?: Moment | null; /** Placeholder of the start Date */ startDatePlaceholder?: string | null; /** Placeholder of the end Date */ endDatePlaceholder?: string | null; /** Moment format to display the date in */ dateFormat?: string | null; /** If true, adds invalid styles to the input */ isInvalid?: boolean; /** If true, adds disabled attribute to the input */ isDisabled?: boolean; /** Applies recommended settings for mobile and tablet viewports */ isMobile?: boolean; /** Called when the input is changed */ onChange?: (dates: { startDate: Moment | null; endDate: Moment | null; }) => void; /** Disable for the calender (Return true for disabled date) */ isDisabledForDate?: (day: Moment) => boolean; } /** * @deprecated Use instead */ declare const DateRangeInput: React.FC>; export { DateRangeInput };