import { QueryClient } from '@tanstack/react-query';
export default function useDelete<Model, Repository>(props: {
    resource: string;
    repository: string;
    fn: (repo: Repository, id: string) => Promise<void>;
    onSuccess?: (response: any, queryClient: QueryClient, params: any) => void;
    onFailure?: (error: any) => void;
    options?: {
        refetchList?: boolean;
    };
}): {
    delete: (id: string, additionalParams?: any) => Promise<void>;
    reset: () => any;
    loading: boolean;
    loaded: boolean;
    data: null;
    error: any;
};
