import type { Result } from '@nangohq/utils'; import type { DBUser } from '@nangohq/types'; declare class UserService { getUserById(id: number): Promise; getUserByUuid(uuid: string): Promise; getUserByToken(token: string): Promise>; refreshEmailVerificationToken(expiredToken: string): Promise; getUsersByAccountId(accountId: number): Promise; countUsers(accountId: number): Promise; getAnUserByAccountId(accountId: number): Promise; getUserByEmail(email: string): Promise; getUserByResetPasswordToken(link: string): Promise; createUser({ email, name, hashed_password, salt, account_id, email_verified }: { email: string; name: string; hashed_password?: string; salt?: string; account_id: number; email_verified: boolean; }): Promise; editUserPassword(user: Pick): Promise; changePassword(newPassword: string, oldPassword: string, id: number): Promise; suspendUser(id: number): Promise; verifyUserEmail(id: number): Promise; update({ id, ...data }: { id: number; } & Omit, 'id'>): Promise; } declare const _default: UserService; export default _default;