import { BasePhoneVerifierService } from '../base/base-phone-verifier.service'; import { METHOD_TYPE } from '../phone-verifier.interface'; import { CustomPhoneVerifierMethod, CustomPhoneVerifierNewMethodDto } from './custom-phone-verifier.interface'; import { NotificationService } from '~backend/notification/notification.service'; import { VerifierModel } from '~backend/verifier/verifier.model'; import { ReturnModelType } from '@typegoose/typegoose'; export declare class CustomPhoneVerifierService extends BasePhoneVerifierService { protected readonly verifierModel: ReturnModelType; private readonly notificationService; constructor(verifierModel: ReturnModelType, notificationService: NotificationService); protected readonly logger: any; protected method: METHOD_TYPE; private lifetime; /** minutes */ private maxFailures; private url; protected newOtp(): any; private getMessage; private getExpiredAt; protected newMethod(dto: CustomPhoneVerifierNewMethodDto): CustomPhoneVerifierMethod; protected sendOtp(target: string, method: CustomPhoneVerifierMethod): Promise; protected verifyOtp(target: string, otp: string): Promise<{ ok: boolean; id: any; error: Error; }>; }