import { ITreeData, ITreeRenderKey, TreeRootIdArray, ITreeRootInfoMap } from './common'; export interface ICreateStateByPropsParams { data: ITreeData[]; dataType?: 'tree' | 'plain'; renderKey?: Partial; checkable?: boolean; expandAll?: boolean; checkedKeys?: TreeRootIdArray; disabledCheckedKeys?: TreeRootIdArray; loadMore?: (data: ITreeData) => Promise; isRoot?: (data: ITreeData) => boolean; } export interface ICreateStateByPropsReturn { tree: ITreeData[]; renderKey: ITreeRenderKey; rootInfoMap: ITreeRootInfoMap; expandNode: TreeRootIdArray; checkedNode: TreeRootIdArray; disabledNode: TreeRootIdArray; } export default function createStateByProps({ data, isRoot, renderKey: propsRenderKey, dataType, expandAll, loadMore, checkable, disabledCheckedKeys, checkedKeys, }: ICreateStateByPropsParams): ICreateStateByPropsReturn;