import {FormControl, FormControlProps} from "./FormControl";
import * as moment from "moment";

export type DateRangePickerControlProps = FormControlProps & {
    ranges?: object,
    onChange?: Function;
    startDate?: moment.Moment;
    endDate?: moment.Moment;
    locale?: string;
    valueFormatter?: Function;
    ariaLabel?: string;
    setPrevMonthText?: string;
    setNextMonthText?: string;
} & Partial<DateRangePickerControlDefaultProps>;

export type DateRangePickerControlDefaultProps = {
    locale: string;
    valueFormatter: Function;
    ariaLabel: string;
    setPrevMonthText: string;
    setNextMonthText: string;
}

export class DateRangePickerControl extends FormControl<DateRangePickerControlProps> {
    // @ts-ignore
    getValue(): any;
}