import { MailService as MailManagerService } from '@hedhog/mail-manager'; import { PrismaService } from '@hedhog/prisma'; import { OnModuleInit } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { JwtService } from '@nestjs/jwt'; import { SettingService } from '../setting/setting.service'; import { ChangeDTO } from './dto/change.dto'; import { CreateUserDTO } from './dto/create-user.dto'; import { EmailDTO } from './dto/email.dto'; import { ForgetDTO } from './dto/forget.dto'; import { LoginWithCodeDTO } from './dto/login-with-code.dto'; import { LoginDTO } from './dto/login.dto'; import { RegisterDTO } from './dto/register.dto'; import { ResetDTO } from './dto/reset.dto'; export declare class AuthService implements OnModuleInit { private readonly configService; private readonly prisma; private readonly jwt; private readonly mail; private readonly setting; settings: Record; constructor(configService: ConfigService, prisma: PrismaService, jwt: JwtService, mail: MailManagerService, setting: SettingService); onModuleInit(): Promise; createUserCheck(code: string): Promise<{ name: string; id: number; email: string; }>; getPasswordHashed(password: string): Promise; register({ email, name, password, code, multifactor_id }: RegisterDTO): Promise<{ token: string; mfa: boolean; }>; createUser(locale: string, { code, password, street, number, complement, district, city, state, postal_code, }: CreateUserDTO): Promise<{ token: string; mfa: boolean; }>; verifyToken(token: string): Promise; generateRandomString(length: number): string; generateRandomNumber(): number; generateRandomPassword(length?: number): string; loginWithEmailAndPassword(locale: string, email: string, password: string): Promise<{ token: string; mfa: boolean; } | { token: string; mfa: boolean; multifactor_id: any; }>; refreshToken(userId: number): Promise<{ token: string; mfa: boolean; }>; userMfaSteps(user: any, locale?: string): Promise<{ token: string; mfa: boolean; } | { token: string; mfa: boolean; multifactor_id: any; }>; getToken(user: any): Promise<{ token: string; mfa: boolean; }>; forget(locale: string, { email }: ForgetDTO): Promise<{ message: string; }>; changePassword(locale: string, { email, currentPassword, newPassword, confirmNewPassword }: ChangeDTO): Promise<{ token: string; mfa: boolean; }>; changeEmail(locale: string, { currentEmail, password, newEmail }: EmailDTO): Promise<{ token: string; mfa: boolean; }>; resetPassword(locale: string, { code, newPassword, confirmNewPassword }: ResetDTO): Promise; checkCodeMfa(userId: number, code: string): Promise; loginRecoveryCode({ token, code }: LoginWithCodeDTO): Promise<{ token: string; mfa: boolean; }>; loginCode({ token, code }: LoginWithCodeDTO): Promise<{ token: string; mfa: boolean; }>; login(locale: string, { email, password }: LoginDTO): Promise<{ token: string; mfa: boolean; } | { token: string; mfa: boolean; multifactor_id: any; }>; verify(id: number): Promise<{ code: string | null; name: string; id: number; created_at: Date; updated_at: Date; multifactor_id: number | null; email: string; password: string; }>; generateMfa(userId: number): Promise<{ otpauthUrl: any; qrCode: any; }>; generateRecoveryCodes(count?: number): string[]; createMfaRecoveryCodes(userId: number): Promise; removeMfa(userId: number, token: string): Promise<{ token: string; mfa: boolean; }>; verifyMfa(email: string, token: string, verifyMultifactor?: boolean): Promise<{ codes: string[]; token: string; mfa: boolean; }>; } //# sourceMappingURL=auth.service.d.ts.map