import { Logger } from '@n8n/backend-common'; import { InstanceAiConfig } from '@n8n/config'; import { SharedWorkflowRepository, TransactionRunner } from '@n8n/db'; import { DurableEventLog } from '../event-bus/durable-event-log'; import { InterruptedRunSweeper } from '../event-bus/interrupted-run-sweeper'; import { InstanceAiService } from '../instance-ai.service'; import { InstanceAiEventLogRepository } from '../repositories/instance-ai-event-log.repository'; import { WorkflowSuggestionService } from '../workflow-suggestions/workflow-suggestion.service'; import { SelfHealingConfigurationRepository } from './database/self-healing-configuration.repository'; import { SelfHealingInvestigationRepository } from './database/self-healing-investigation.repository'; import { SelfHealingResultRepository } from './database/self-healing-result.repository'; import { SelfHealingConfigurationService } from './self-healing-configuration.service'; import { SelfHealingExecutionReferenceService } from './self-healing-execution-reference.service'; import { SelfHealingResultService } from './self-healing-result.service'; export declare const SELF_HEALING_CANNOT_FIX_COOLDOWN_MS: number; type StartInvestigation = { workflowId: string; projectId: string; executionId: string; }; type ExistingWork = { kind: 'investigation'; investigationId: string; } | { kind: 'result'; resultId: string; }; export declare class SelfHealingInvestigationService { private readonly investigations; private readonly results; private readonly suggestions; private readonly resultRepository; private readonly ownership; private readonly executions; private readonly runtime; private readonly events; private readonly eventLog; private readonly sweeper; private readonly txRunner; private readonly config; private readonly logger; private readonly configurations; private readonly configurationService; constructor(investigations: SelfHealingInvestigationRepository, results: SelfHealingResultService, suggestions: WorkflowSuggestionService, resultRepository: SelfHealingResultRepository, ownership: SharedWorkflowRepository, executions: SelfHealingExecutionReferenceService, runtime: InstanceAiService, events: InstanceAiEventLogRepository, eventLog: DurableEventLog, sweeper: InterruptedRunSweeper, txRunner: TransactionRunner, config: InstanceAiConfig, logger: Logger, configurations: SelfHealingConfigurationRepository, configurationService: SelfHealingConfigurationService); start(input: StartInvestigation): Promise; private findExisting; private claim; private cooldownQuery; private run; private handleRunCompletion; reconcile(signal?: AbortSignal): Promise; private reconcileInvestigation; private requireProject; } export {};