import { ICommandHandler } from '@nestjs/cqrs'; import { AuthRegisterCommand } from '../auth.register.command'; import { AuthService } from '../../auth.service'; import { IUser } from '@metad/contracts'; import { UserService } from '../../../user/user.service'; export declare class AuthRegisterHandler implements ICommandHandler { private readonly authService; private readonly userService; constructor(authService: AuthService, userService: UserService); /** * Executes the user registration command, handling specific checks for SUPER_ADMIN role. * * @param command The AuthRegisterCommand containing user registration input and optional parameters. * @returns A Promise resolving to the registered IUser object. * @throws BadRequestException if input is missing required fields. * @throws UnauthorizedException if the user initiating registration is not authorized. */ execute(command: AuthRegisterCommand): Promise; }