import { OTPTransportIdentifier } from "./types/otp"; import { UserSession } from "./types/session"; /** * @description Implements the authentication methods */ export declare class Auth { private sessionManager; private otpManager; private userManager; constructor(); loginWithOTP(OTP: string, key: string, transporterIdentifier: OTPTransportIdentifier, expire: number): Promise; loginWithUsernamePassword(username: string, password: string): Promise; /** * * @param phone {string} * @returns OTPKey */ authenticateBySMSOTP(phone: string): Promise; /** * * @param email {string} * @returns OTPKey */ authenticateByEmailOTP(email: string): Promise; }