import { Repository } from 'typeorm';
import { ClsService } from 'nestjs-cls';
import { RoleEntity } from '../../entities/role.entity';
import { RolePermissionEntity } from '../../entities/role-permission.entity';
export interface RoleRights {
    permissions: Array<{
        module: string;
        access_level: string;
    }>;
    view_all_bookings_queries?: boolean;
}
export declare class RolePrivilegeService {
    private readonly roleRepo;
    private readonly rolePermRepo;
    private readonly cls;
    constructor(roleRepo: Repository<RoleEntity>, rolePermRepo: Repository<RolePermissionEntity>, cls: ClsService);
    assertWithinOwnRights(rights: RoleRights, message: string): void;
    assertCanManageRole(roleId: string, action: string): Promise<RoleEntity>;
}
