import { Moment } from 'moment'; import { ViewStateActions } from '../../../../services/hooks'; export interface Range { start: null | number; end?: null | number; period?: null | string; } type DateRanges = Record; type DatePickerTypes = 'Range'; export interface OnChangeDatePickerProps { selectedDates: Moment[]; label?: string; isEqualToCustomRange: boolean; } export interface DatePickerProps { title?: string; dateFormat?: string; initialDates?: Range; customDates?: DateRanges; timePicker?: boolean; readonly?: boolean; onChange(props: Range): void; type: DatePickerTypes; classes?: { input?: string; inputDisabled?: string; formRow?: string; }; } interface StateData { selectedDates: Moment[]; isEqualToCustomRange: boolean; customRangeLabel: string; customDates?: DateRanges; } interface DatePickerActions { handleCallback(initialDates: Moment[], label?: string): void; getLabel(): string; getInitialDates(): Moment[]; } export declare const useDatePicker: (props: DatePickerProps) => [StateData, DatePickerActions, ViewStateActions]; export {};