import type { IDataObject } from 'n8n-workflow'; import { WithTimestampsAndStringId } from './abstract-entity'; import type { TestCaseExecution } from './test-case-execution.ee'; import { AggregatedTestRunMetrics } from './types-db'; import type { TestRunErrorCode, TestRunFinalResult } from './types-db'; import { WorkflowEntity } from './workflow-entity'; export type TestRunStatus = 'new' | 'running' | 'completed' | 'error' | 'cancelled'; export declare class TestRun extends WithTimestampsAndStringId { status: TestRunStatus; runAt: Date | null; completedAt: Date | null; metrics: AggregatedTestRunMetrics; errorCode: TestRunErrorCode | null; errorDetails: IDataObject | null; testCaseExecutions: TestCaseExecution[]; workflow: WorkflowEntity; workflowId: string; runningInstanceId: string | null; cancelRequested: boolean; workflowVersionId: string | null; evaluationConfigId: string | null; evaluationConfigSnapshot: IDataObject | null; collectionId: string | null; finalResult?: TestRunFinalResult | null; }