import { EventService } from '@n8n/backend-services'; import type { CrashedExecution, ResumableExecutionStatus } from '@n8n/db'; import { ExecutionRepository } from '@n8n/db'; import { InstanceSettings } from 'n8n-core'; import type { CrashDetector } from '../events/maps/relay.event-map'; import { WorkflowStatisticsService } from '../services/workflow-statistics.service'; export declare class ExecutionCrashService { private readonly executionRepository; private readonly workflowStatisticsService; private readonly eventService; private readonly instanceSettings; constructor(executionRepository: ExecutionRepository, workflowStatisticsService: WorkflowStatisticsService, eventService: EventService, instanceSettings: InstanceSettings); markAsCrashed(executionIds: string | string[], detector: CrashDetector): Promise; markAsCrashedFrom(executionId: string, status: ResumableExecutionStatus, detector: CrashDetector, expectedAttempts?: number): Promise; markAsCrashedWithoutCounting(executionIds: string | string[], detector: CrashDetector, options?: { stoppedAt?: Date; }): Promise; markWorkflowExecutionsAsCrashed(workflowId: string): Promise; private count; private announce; }