import type { SelfHealingConfigurationDto, SaveSelfHealingConfigurationDto } from '@n8n/api-types'; import { BaseRepository, Person, TransactionRunner, WorkflowEntity, type OperationContext } from '@n8n/db'; import { DataSource, type ObjectLiteral, type SelectQueryBuilder } from '@n8n/typeorm'; import { SelfHealingConfiguration } from './self-healing-configuration.entity'; type ReviewerRoles = { projectRoleSlugs: string[]; globalRoleSlugs: string[]; workflowRoleSlugs: string[]; }; export declare function whereReviewer(query: SelectQueryBuilder, configurationAlias: string, userIdExpression: string, projectIdExpression?: string): SelectQueryBuilder; export declare class SelfHealingConfigurationRepository extends BaseRepository { constructor(dataSource: DataSource, tx: TransactionRunner); findForUpdate(id: number, projectId: string, ctx: OperationContext): Promise; list(projectId: string, id?: number): Promise; findForWorkflow(projectId: string, workflowId: string): Promise; listProjectWorkflows(projectId: string, workflowIds?: string[]): Promise; saveConfiguration(configuration: SelfHealingConfiguration, ctx: OperationContext): Promise; findProjectMembersWithEditAccess(projectId: string, roles: ReviewerRoles, userIds?: string[]): Promise; private reviewerMembers; hasReviewerWithEditRole(configuration: SelfHealingConfiguration, roles: ReviewerRoles, ctx: OperationContext): Promise; hasReviewerWithSharedWorkflowAccess(configuration: SelfHealingConfiguration, roles: ReviewerRoles, ctx: OperationContext): Promise; replaceSelections(configuration: SelfHealingConfiguration, input: Pick, ctx: OperationContext): Promise; removeWorkflowSelections(workflowIds: string[]): Promise; deleteConfiguration(id: number, ctx: OperationContext): Promise; isReviewer(configurationId: number, userId: string, ctx: OperationContext): Promise; } export {};