import { Repository, UpdateResult } from 'typeorm'; import { QueryDeepPartialEntity } from 'typeorm/query-builder/QueryPartialEntity'; import { ITenant, IRolePermission, IRolePermissionMigrateInput, ID } from '@metad/contracts'; import { TenantAwareCrudService } from './../core/crud'; import { RolePermission } from './role-permission.entity'; import { Role } from '../role/role.entity'; import { RoleService } from '../role/role.service'; export declare class RolePermissionService extends TenantAwareCrudService { private readonly rolePermissionRepository; private readonly roleService; constructor(rolePermissionRepository: Repository, roleService: RoleService); updatePermission(id: ID, partialEntity: QueryDeepPartialEntity): Promise; deletePermission(id: ID): Promise; updateRoles(tenant: ITenant, role: Role): Promise; updateRolesAndPermissions(tenants: ITenant[]): Promise; migratePermissions(): Promise; /** * Checks if the given role permissions are valid for the current tenant. * @param permissions - An array of role permissions to check. * @param includeRole - Optional parameter to include role-specific checks. * @returns A Promise with a boolean indicating if the role permissions are valid. */ checkRolePermission(tenantId: string, roleId: string, permissions: string[], includeRole?: boolean): Promise; }