import type { Result } from '@nangohq/utils';
import type { DBUser } from '@nangohq/types';
declare class UserService {
    getUserById(id: number): Promise<DBUser | null>;
    getUserByUuid(uuid: string): Promise<DBUser | null>;
    getUserByToken(token: string): Promise<Result<DBUser>>;
    refreshEmailVerificationToken(expiredToken: string): Promise<DBUser | null>;
    getUsersByAccountId(accountId: number): Promise<DBUser[]>;
    countUsers(accountId: number): Promise<number>;
    getAnUserByAccountId(accountId: number): Promise<DBUser | null>;
    getUserByEmail(email: string): Promise<DBUser | null>;
    getUserByResetPasswordToken(link: string): Promise<DBUser | null>;
    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<DBUser | null>;
    editUserPassword(user: Pick<DBUser, 'id' | 'reset_password_token' | 'hashed_password'>): Promise<number>;
    changePassword(newPassword: string, oldPassword: string, id: number): Promise<number>;
    suspendUser(id: number): Promise<void>;
    verifyUserEmail(id: number): Promise<number>;
    update({ id, ...data }: {
        id: number;
    } & Omit<Partial<DBUser>, 'id'>): Promise<DBUser | null>;
}
declare const _default: UserService;
export default _default;
