import { DataSource, FindManyOptions, FindOneOptions, Repository } from 'typeorm'; import { EventEmitter2 } from '@nestjs/event-emitter'; import { AuthConfigService } from '../../core/services/auth-config.service'; import { NestAuthRole } from '../entities/role.entity'; import { IUpdateRoleInput } from '@ackplus/nest-auth-contracts'; export declare class RoleService { private roleRepository; private dataSource; private authConfigService; private readonly eventEmitter; constructor(roleRepository: Repository, dataSource: DataSource, authConfigService: AuthConfigService, eventEmitter: EventEmitter2); private getDefaultRoleGuard; private getRoleRelations; private resolveAndValidateGuard; private normalizePermissionNames; private buildRoleConflictMessage; private ensureRoleIsUnique; private resolvePermissionsByNames; private replaceRolePermissions; private getHydratedRole; createRole(name: string, guard: string | null | undefined, tenantId?: string | null, isSystem?: boolean, permissionNames?: string | string[], isActive?: boolean): Promise; getRoleById(id: string, options?: Omit, 'where'>): Promise; getRoleByName(name: string, guard?: string, tenantId?: string, options?: Omit, 'where'>): Promise; getSystemRoles(options?: Omit, 'where'>): Promise; getRoles(params?: { guard?: string; tenantId?: string; onlyTenantRoles?: boolean; onlySystemRoles?: boolean; includeTenant?: boolean; }, options?: FindManyOptions): Promise; updateRole(id: string, data: IUpdateRoleInput): Promise; updateRolePermissions(id: string, permissionNames: string[]): Promise; deleteRole(id: string): Promise; } //# sourceMappingURL=role.service.d.ts.map