UNPKG

@sms-frontend/components

Version:

SMS Design React UI Library.

15 lines (14 loc) 674 B
import { MutableRefObject } from 'react'; 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[]; declare const useStateValue: (props: TreeSelectProps, key2nodeProps: KeyCacheType, indeterminateKeys: MutableRefObject<string[]>) => [LabelValue[], (v: LabelValue[]) => void]; export default useStateValue;