interface UseApiProps {
    apiFunc: any;
    onSuccess?: any;
    onError?: any;
    enableLoading?: any;
    successMessage?: string;
    errorMessage?: string | null;
    loadingState?: any;
    showError?: boolean;
}
export default function useApi(): {
    callApi: ({ apiFunc, onSuccess, onError, successMessage, errorMessage, loadingState, enableLoading, showError, }: UseApiProps) => Promise<{
        response: any;
        error: any;
    }>;
    loading: boolean;
    error: any;
};
export {};
