import { Repository, InsertResult } from 'typeorm'; import { User } from './user.entity'; import { TenantAwareCrudService } from './../core/crud'; import { IUser, LanguagesEnum } from '@metad/contracts'; import { EmailVerification } from './email-verification/email-verification.entity'; import { UserPublicDTO } from './dto'; export declare class UserService extends TenantAwareCrudService { emailVerificationRepository: Repository; constructor(userRepository: Repository, emailVerificationRepository: Repository); getUserByEmail(email: string): Promise; getUserIdByEmail(email: string): Promise; getIfExistsUser(user: IUser): Promise; checkIfExistsEmail(email: string): Promise; checkIfExists(id: string): Promise; checkIfExistsThirdParty(thirdPartyId: string): Promise; getIfExists(id: string): Promise; getIfExistsThirdParty(thirdPartyId: string): Promise; createOne(user: User): Promise; changePassword(id: string, hash: string): Promise; resetPassword(id: string, hash: string, password: string): Promise; updateProfile(id: string | number, partialEntity: User, ...options: any[]): Promise; getAdminUsers(tenantId: string): Promise; updatePreferredLanguage(id: string | number, preferredLanguage: LanguagesEnum): Promise; verifyEmail(token: string): Promise; deleteEmailVarification(id: string): Promise; search(text: string, organizationId: string): Promise<{ items: UserPublicDTO[]; total: number; }>; private getPasswordHash; }