import { DataSource, Repository } from '@n8n/typeorm'; import { ProjectRelation, Role } from '../entities'; export declare class ProjectRelationRepository extends Repository { constructor(dataSource: DataSource); findPersonalOwnerEmails(projectIds: string[]): Promise>; getPersonalProjectOwners(projectIds: string[]): Promise; findAdminUserIdsByProjectIds(projectIds: string[]): Promise>; getPersonalProjectsForUsers(userIds: string[]): Promise; getAccessibleProjectsByRoles(userId: string, roles: string[]): Promise; findProjectRole({ userId, projectId }: { userId: string; projectId: string; }): Promise; countUsersByRole(): Promise>; findUserIdsByProjectId(projectId: string): Promise; findAllByUser(userId: string, { withProject }?: { withProject?: boolean; }): Promise; private attachRoleScopes; findProjectIdsByUserIds(userIds: string[]): Promise>; }