import Base, { MaybeRaw } from "../../../../../../Base"; import { ActivatedTotp, DeactivatedTotp, UserTotp } from "../../../../../../interfaces/idp/user/Totp"; export declare class IdpTotp extends Base { /** * Creates a new TOTP for the requesting User. * @returns A deactivated TOTP object containing all necessary data to create a QR code */ createTotp(raw?: { raw: R; }): Promise>; /** * Activates a previously created TOTP. * @returns Object containing a list of recover codes in case of TOTP authenticator loss */ activateTotp(token: string, raw?: { raw: R; }): Promise>; /** * Verifies a TOTP. * @param userTotp TOTP to verify */ verifyTotp(userTotp: UserTotp, raw?: { raw: R; }): Promise>; /** * Deactivates (deletes) a previously activated TOTP. * @param token TOTP to deactivate */ deactivateTotp(token: string, raw?: { raw: R; }): Promise>; /** * Deactivates (deletes) a previously activated TOTP by using a recovery code. * @param email Email of the User * @param password Password * @param code Recovery code */ deactivateTotpByRecoverCode(email: string, password: string, code: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }