import { Ref } from 'vue';

export declare const useEnsuredApi: <K>({ privilege, apiFn, callback, defaultData, }: {
    privilege?: () => boolean;
    apiFn: (query?: any) => Promise<{
        data: K[];
    }>;
    callback?: (data: {
        data: K[];
    } & Record<string, any>) => K[];
    defaultData?: K[];
}) => {
    api: (force?: boolean) => Promise<K[]>;
    data: Ref<K[]>;
    isLoading: Ref<boolean>;
};
