import { ConfigData, OTP } from "../types/session"; import { OTPTransportIdentifier } from "../types/otp"; export declare class OTPManager { private encrypt; private config; constructor(config: ConfigData); /** * * @param transportIdentifier OTPTransportIdentifier * @returns */ generateOTP(transportIdentifier: OTPTransportIdentifier): Promise<{ otp: string; expireTime: Date; key: string; otpID: string; }>; /** * * @param otpDetails * @returns */ generateOTPKey(otpDetails: any): Promise; validateOTP(OTP: string, key: string, identifier: OTPTransportIdentifier): Promise; hasOTPExpired(key: string, identifier: OTPTransportIdentifier): Promise; updateOTPObj(key: string): Promise; saveOTP(otp: OTP): Promise; getOTP(otpID: string): Promise; deleteOTP(otpID: string): Promise; updateOTP(otp: OTP): Promise; AddMinutesToDate(date: Date, minutes: number): Date; getOTPExpireTime(): Date; } export default OTPManager;