import { MutableRefObject } from 'react'; import { NodeProps } from '../../Tree/interface'; import { LabelValue, TreeSelectProps } from '../interface'; import { KeyCacheType } from './useKeyCache'; declare type valueType = (string | LabelValue)[]; export interface TreeSelectState { value: valueType[]; popupVisible: boolean; focused: boolean; inputValue: string; searchKeys: string[]; } export declare const parseValue: (v: valueType, key2nodeProps: any, valueMap?: LabelValue[]) => LabelValue[]; export declare const getInitCheckKeys: (keys: string[], key2nodeProps: KeyCacheType, indeterminateKeys: any, props: TreeSelectProps) => string[]; declare const useStateValue: (props: TreeSelectProps, key2nodeProps: KeyCacheType, indeterminateKeys: MutableRefObject) => [LabelValue[], (v: LabelValue[], extra: { trigger?: NodeProps; checked?: boolean; selected?: boolean; }) => void, LabelValue[], () => void, () => void]; export default useStateValue;