import { Ref, ShallowRef } from 'vue';
import { VueNode } from '../../_util/type';
import { DefaultOptionType } from '../TreeSelect';
import { DataNode, SimpleModeConfig } from '../interface';
/**
 * Convert `treeData` or `children` into formatted `treeData`.
 * Will not re-calculate if `treeData` or `children` not change.
 */
export default function useTreeData(treeData: Ref<DataNode[]>, children: Ref<VueNode[]>, simpleMode: Ref<boolean | SimpleModeConfig>): ShallowRef<DefaultOptionType[]>;
