import type { Dayjs } from 'dayjs';
import type { DateModelType, DayOrDays, ModelValueType, PickerOptions, SingleOrRange, UserInput } from '../common/props';
interface CommonPickerProps {
modelValue: ModelValueType | null;
valueFormat?: string;
}
type CommonPickerEmits = (event: 'update:modelValue' | 'calendar-change' | 'panel-change', ...args: any[]) => void;
export declare const useCommonPicker:
(props: P, emit: E) => {
parsedValue: import("vue").ComputedRef;
pickerActualVisible: import("vue").Ref;
pickerOptions: import("vue").Ref<{
isValidValue?: ((date: DayOrDays) => boolean) | undefined;
handleKeydownInput?: ((event: KeyboardEvent) => void) | undefined;
parseUserInput?: ((value: UserInput) => DayOrDays) | undefined;
formatToString?: ((value: DayOrDays) => UserInput) | undefined;
getRangeAvailableTime?: ((date: DayOrDays) => DayOrDays) | undefined;
getDefaultValue?: (() => DayOrDays) | undefined;
panelReady?: boolean | undefined;
handleClear?: (() => void) | undefined;
handleFocusPicker?: (() => void) | undefined;
}>;
pickerVisible: import("vue").Ref;
userInput: import("vue").Ref;
valueIsEmpty: import("vue").ComputedRef;
emitInput: (input: SingleOrRange | null) => void;
onCalendarChange: (e: [Date, null | Date]) => void;
onPanelChange: (value: [Dayjs, Dayjs], mode: "month" | "year", view: unknown) => void;
onPick: (date?: any, visible?: boolean) => void;
onSetPickerOption: (e: [T, PickerOptions[T]]) => void;
};
export type CommonPickerContext = ReturnType;
export {};