import type { WorkflowSuggestionBaseline } from '@n8n/api-types'; import { Logger } from '@n8n/backend-common'; import { InstanceWriteAccessService } from '@n8n/backend-services'; import type { User } from '@n8n/db'; import { type InstanceAiContext, type SelfHealingCandidateInput } from '@n8n/instance-ai'; import { License } from '../../../license'; import { EnterpriseWorkflowService } from '../../../workflows/workflow.service.ee'; import { WorkflowSuggestionService } from '../workflow-suggestions/workflow-suggestion.service'; import { type CandidateWorkflowResult } from './candidate-workflow'; import { SelfHealingTemporaryWorkflowService } from './self-healing-temporary-workflow.service'; type CandidateInput = SelfHealingCandidateInput & { user: User; baseline: WorkflowSuggestionBaseline; context: InstanceAiContext; abortSignal: AbortSignal; }; export declare class SelfHealingCandidateService { private readonly suggestions; private readonly temporaryWorkflows; private readonly logger; private readonly enterpriseWorkflows; private readonly license; private readonly writeAccess; constructor(suggestions: WorkflowSuggestionService, temporaryWorkflows: SelfHealingTemporaryWorkflowService, logger: Logger, enterpriseWorkflows: EnterpriseWorkflowService, license: License, writeAccess: InstanceWriteAccessService); compile(input: Pick, user: User): Promise; verify(input: CandidateInput): Promise<{ filePath: string; validation: { success: false; reason: string; errors: string[]; }; verification: { status: string; }; } | { filePath: string; candidateChecksum: string; validation: { success: boolean; warnings: import("@n8n/instance-ai").ValidationWarning[]; }; credentialResolution: import("@n8n/instance-ai").CredentialResolutionResult; verification: { status: string; }; } | { filePath: string; candidateChecksum: string; validation: { success: boolean; warnings: import("@n8n/instance-ai").ValidationWarning[]; }; credentialResolution: import("@n8n/instance-ai").CredentialResolutionResult; verification: { status: string; error: string; } | { resolvedWorkItemId?: string; executionId?: string; success: boolean; nodesExecuted?: string[]; nodePreviews?: import("@n8n/instance-ai").VerificationNodePreview[]; simulatedNodes?: Array<{ nodeName: string; reason: string; }>; simulationNote?: string; lastNodeExecuted?: string; nodeErrors?: import("@n8n/instance-ai").ExecutionNodeError[]; nodesNotReached?: string[]; coverageNote?: string; claim?: { level: "failed" | "partial" | "unproven" | "verified"; plannedNodeCount: number; reachedNodeCount: number; nodesNotReached: string[]; simulatedNodes: { nodeName: string; reason: string; }[]; pinnedNodes: string[]; unprovenTargets: string[]; pendingTriggers?: string[] | undefined; publishReady: boolean; liveTestRecommended: boolean; liveState?: "live-current" | "live-stale" | "unpublished" | undefined; verifiedVersionId?: string | undefined; }; data?: Record; error?: string; remediation?: { category: "blocked" | "code_fixable" | "needs_setup"; shouldEdit: boolean; guidance: string; reason?: string | undefined; remainingSubmitFixes?: number | undefined; attemptCount?: number | undefined; }; guidance?: string; status: string; } | { reason: string; guidance: string; nodesNotReached?: string[]; error?: undefined; status: string; } | { status: string; success: boolean; nodesExecuted: string[] | undefined; nodesNotReached: string[]; simulatedNodes: { nodeName: string; reason: string; }[]; simulationNote: string | undefined; coverageNote: string | undefined; nodeErrors: import("@n8n/instance-ai").ExecutionNodeError[]; error: string | undefined; parameterChecks: { warnings: { nodeName: string; executionId?: string | undefined; path: string; raw: string; issue: "empty" | "failed"; detail?: string | undefined; }[]; skipped: { nodeName: string; executionId?: string | undefined; reason: "execution-redacted" | "execution-unavailable" | "parameter-values-disabled" | "replay-failed"; }[]; skippedCount: number; }; nodePreviews: import("@n8n/instance-ai").VerificationNodePreview[]; }; }>; private verifyExecution; private summarizeVerification; } export {};