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