import { MutationOptions } from '@tanstack/query-core';
import { BetterFetchError } from 'better-auth/client';
import { TwoFactorAuthClient } from './two-factor-auth-client';
export type VerifyTwoFactorOtpParams<TAuthClient extends TwoFactorAuthClient> = Parameters<TAuthClient["twoFactor"]["verifyOtp"]>[0];
export type VerifyTwoFactorOtpOptions<TAuthClient extends TwoFactorAuthClient> = Omit<ReturnType<typeof verifyTwoFactorOtpOptions<TAuthClient>>, "mutationKey" | "mutationFn" | "meta">;
/** Mutation options factory for verifying an emailed second-factor code. */
export declare function verifyTwoFactorOtpOptions<TAuthClient extends TwoFactorAuthClient>(authClient: TAuthClient): MutationOptions<Awaited<ReturnType<(params: VerifyTwoFactorOtpParams<TAuthClient>) => Promise<(Omit<{
    token: string;
    user: import('better-auth/plugins').UserWithTwoFactor;
}, "user"> & {
    user: import('better-auth').StripEmptyObjects<{
        id: string;
        createdAt: Date;
        updatedAt: Date;
        email: string;
        emailVerified: boolean;
        name: string;
        image?: string | null | undefined;
    } & {
        twoFactorEnabled: boolean | null | undefined;
    } & {}>;
}) | (Omit<{
    token: string;
    user: Record<string, any> & {
        id: string;
        createdAt: Date;
        updatedAt: Date;
        email: string;
        emailVerified: boolean;
        name: string;
        image?: string | null | undefined;
    };
}, "user"> & {
    user: import('better-auth').StripEmptyObjects<{
        id: string;
        createdAt: Date;
        updatedAt: Date;
        email: string;
        emailVerified: boolean;
        name: string;
        image?: string | null | undefined;
    } & {
        twoFactorEnabled: boolean | null | undefined;
    } & {}>;
})>>>, BetterFetchError, Parameters<(params: VerifyTwoFactorOtpParams<TAuthClient>) => Promise<(Omit<{
    token: string;
    user: import('better-auth/plugins').UserWithTwoFactor;
}, "user"> & {
    user: import('better-auth').StripEmptyObjects<{
        id: string;
        createdAt: Date;
        updatedAt: Date;
        email: string;
        emailVerified: boolean;
        name: string;
        image?: string | null | undefined;
    } & {
        twoFactorEnabled: boolean | null | undefined;
    } & {}>;
}) | (Omit<{
    token: string;
    user: Record<string, any> & {
        id: string;
        createdAt: Date;
        updatedAt: Date;
        email: string;
        emailVerified: boolean;
        name: string;
        image?: string | null | undefined;
    };
}, "user"> & {
    user: import('better-auth').StripEmptyObjects<{
        id: string;
        createdAt: Date;
        updatedAt: Date;
        email: string;
        emailVerified: boolean;
        name: string;
        image?: string | null | undefined;
    } & {
        twoFactorEnabled: boolean | null | undefined;
    } & {}>;
})>>[0]>;
