import { type UseMutationResult } from "@tanstack/react-query";
import type { OnErrorResponse } from "../../../contexts/auth/types";
export type UseOnErrorReturnType = UseMutationResult<OnErrorResponse, unknown, unknown, unknown>;
/**
 * `useOnError` calls the `checkError` method from the {@link https://refine.dev/docs/core/providers/auth-provider `authProvider`} under the hood.
 *
 * @see {@link https://refine.dev/docs/api-reference/core/hooks/auth/useCheckError} for more details.
 *
 */
export declare function useOnError(): UseOnErrorReturnType;
//# sourceMappingURL=index.d.ts.map