import { State } from '../../hooks/useState'; import { Dayjs, OpUnitType, QUnitType } from './dayjs'; import type { useFormats } from './useFormats'; import type { useDisabled } from './useDisabled'; import { PanelFlags, usePanel } from './usePanel'; import type { BasePickerProps } from './basepicker'; export type Value = string | Date | number | Dayjs; export type StateValueRange = [Dayjs] | [Dayjs, Dayjs]; export type StateValueItem = Dayjs | StateValueRange; export type StateValue = StateValueItem[]; export type StringValue = string | string[] | [string, string] | [string, string][]; export type DayjsValueRange = [Dayjs, Dayjs]; export type DayjsValueItem = Dayjs | DayjsValueRange; export type DayjsValue = DayjsValueItem[]; export declare function useValueBase({ createDateByValueFormat, createDateByShowFormat, getShowString, getValueString, }: ReturnType, { isDisabled, minDate }: ReturnType, panel: ReturnType, shouldUpdateValue: (v: StateValueItem) => boolean, updateValueOnInput: (v: DayjsValueItem) => void, getEqualType: () => OpUnitType | QUnitType, updateStateValue: (v: DayjsValue, value: State) => void): { value: State; format: () => string | string[]; formatSingleValue: (value: StateValueItem) => string; onChangeTime: (date: Dayjs, flag: PanelFlags) => void; getTimeValue: (flag: PanelFlags) => Dayjs | null | undefined; setValue: (v: StateValueItem, fromInput: boolean) => void; convertToDayjs: (v: BasePickerProps['value']) => DayjsValue; getDayjsValue: () => DayjsValue; unique: () => void; setMoment: () => void; updateValue: () => void; allValuesUpdatedInMultipleMode: () => boolean | undefined; };