import { LoginWithPasswordParams } from '../../generated/api';
import { MutationOptions, UseMutationResult } from '@tanstack/react-query';
type Variables = LoginWithPasswordParams;
type LoginResult = {
    login: string;
    token: string;
};
export declare const loginWithPassword: (params: Variables) => Promise<LoginResult>;
declare const useLoginWithPassword: (mutationOptions?: MutationOptions<LoginResult, Error, Variables, MutationOptions>) => UseMutationResult<LoginResult, Error, Variables, MutationOptions>;
export default useLoginWithPassword;
