UNPKG

mantine-datepicker-jalali

Version:
25 lines 874 B
import { DatePickerType, DatePickerValue } from '../../types'; interface UseDatesInput<Type extends DatePickerType = 'default'> { type: Type; value: DatePickerValue<Type>; defaultValue: DatePickerValue<Type>; onChange(value: DatePickerValue<Type>): void; locale: string; format: string; closeOnChange: boolean; } export declare function useDatesInput<Type extends DatePickerType = 'default'>({ type, value, defaultValue, onChange, locale, format, closeOnChange, }: UseDatesInput<Type>): { _value: any; setValue: (val: any) => void; onClear: () => void; shouldClear: boolean; formattedValue: string; dropdownOpened: boolean; dropdownHandlers: { readonly open: () => void; readonly close: () => void; readonly toggle: () => void; }; }; export {}; //# sourceMappingURL=use-dates-input.d.ts.map