import { DataSource, EntityManager } from '@n8n/typeorm'; import { BaseRepository } from './base-repository'; import { Role } from '../entities'; import { type OperationContext, TransactionRunner } from '../services/transaction'; export declare class RoleRepository extends BaseRepository { constructor(dataSource: DataSource, transactionRunner: TransactionRunner); findAll(context?: EntityManager | OperationContext): Promise; countUsersWithRole(role: Role): Promise; findAllRoleCounts(): Promise>; findAllProjectCounts(): Promise>; findProjectAssignments(roleSlug: string): Promise>; findUsersWithGlobalRole(roleSlug: string): Promise>; findAllProjectMembers(projectId: string, roleSlug?: string): Promise>; findBySlug(slug: string): Promise; findBySlugs(slugs: string[], roleType: 'global' | 'project' | 'workflow' | 'credential'): Promise; removeBySlug(slug: string): Promise; reassignUsersAndRemove(role: Role, toSlug: string): Promise; private updateEntityWithManager; updateRole(slug: string, newData: Partial>): Promise; }