import { HttpException } from '@nestjs/common'; import { Configuration, Context, IUser } from '..'; import { CredentialRepository, LoginCredentials } from './auth.repository'; import { UserService } from './user.service'; import { AuthCallbacks } from "./auth.callbacks"; export declare class AuthenticationFailedException extends HttpException { constructor(message: string); } export declare function hashPassword(password: string): Promise; export declare class AuthService { private readonly authRepository; private readonly userService; private readonly configurationProvider; private readonly authCallbacks; private readonly logger; constructor(authRepository: CredentialRepository, userService: UserService, configurationProvider: Configuration, authCallbacks: AuthCallbacks); validateUser(context: Context, username: string, password: string): Promise; validateFakeLogin(context: Context, secret: string | string[] | undefined, email: string, name: string, roles: string[], orgId: string, props: any): Promise; validateUserGoogle(context: Context, inputProfile: object): Promise; validateUserSaml(context: Context, profile: SimpleUserProfile): Promise; validateUserOidc(context: Context, profile: any, overwriteCredentials: boolean): Promise; private buildUserRoles; private buildUserProperties; validateUserAuth0(context: Context, email: string, name: string, orgId: string, roles: string[], props: any): Promise; createAccount(context: Context, email: string, password: string, account: string): Promise; private validateOrCreateExternalAuthAccount; private loadUserAndCheckEnabled; private validateUserEnabled; private getAccountByEmail; private toName; } export interface SimpleUserProfile { email: string; firstName?: string; lastName?: string; }