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