import { Ref, ShallowRef } from 'vue';
import { FieldNames } from '../Select';
/**
 * Parse `children` to `options` if `options` is not provided.
 * Then flatten the `options`.
 */
export default function useOptions<OptionType>(options: Ref<OptionType[]>, children: Ref<any>, fieldNames: Ref<FieldNames>): {
    options: ShallowRef<any, any>;
    valueOptions: ShallowRef<any, any>;
    labelOptions: ShallowRef<any, any>;
};
