import * as React from 'react'; import type { DataEntity } from '../../tree/interface'; import type { InternalFieldNames, InternalValueType } from '../Cascader'; import type { DraftValueType, LabeledValueType, MultiValueType, SingleValueType } from '../interface'; import type { toPathOptions } from '../utils/treeUtil'; export default function useValues(multiple: boolean, defaultValue: InternalValueType | undefined, value: InternalValueType | undefined, fieldNames: InternalFieldNames, getPathOptions: (valueCells: SingleValueType) => ReturnType, getPathKeyEntities: () => Record, getValueByKeyPath: (pathKeys: React.Key[]) => MultiValueType): [ checkedValues: LabeledValueType[], halfCheckedValues: LabeledValueType[], missingCheckedValues: LabeledValueType[], setLabeledValues: (values?: DraftValueType) => void, toLabeledValues: (draftValues: DraftValueType) => LabeledValueType[] ];