import { type UseMutationOptions, type UseMutationResult } from "@tanstack/react-query"; import type { AuthActionResponse } from "../../../contexts/auth/types"; import type { RefineError } from "../../../contexts/data/types"; export type UseLoginProps = { mutationOptions?: Omit, "mutationFn">; }; export type UseLoginReturnType = UseMutationResult; /** * `useLogin` calls `login` method from {@link https://refine.dev/docs/api-reference/core/providers/auth-provider `authProvider`} under the hood. * * @see {@link https://refine.dev/docs/api-reference/core/hooks/auth/useLogin} for more details. * * @typeParam TData - Result data of the query * @typeParam TVariables - Values for mutation function. default `{}` * */ export declare function useLogin({ mutationOptions, }?: UseLoginProps): UseLoginReturnType; //# sourceMappingURL=index.d.ts.map