import { DataSource, Repository } from '@n8n/typeorm'; import type { IDataObject } from 'n8n-workflow'; import { EvaluationCollection } from '../entities/evaluation-collection.ee'; import { TestRun } from '../entities/test-run.ee'; export type EvaluationCollectionListItem = { id: EvaluationCollection['id']; name: EvaluationCollection['name']; description: EvaluationCollection['description']; workflowId: EvaluationCollection['workflowId']; evaluationConfigId: EvaluationCollection['evaluationConfigId']; createdById: EvaluationCollection['createdById']; insightsCache: EvaluationCollection['insightsCache']; createdAt: EvaluationCollection['createdAt']; updatedAt: EvaluationCollection['updatedAt']; runCount: number; }; export declare class EvaluationCollectionRepository extends Repository { constructor(dataSource: DataSource); createCollection(input: { id: string; name: string; description: string | null; workflowId: string; evaluationConfigId: string; createdById: string | null; }): Promise; findByIdAndWorkflowId(id: string, workflowId: string): Promise; listByWorkflowId(workflowId: string): Promise; getDetailByIdAndWorkflowId(id: string, workflowId: string): Promise<{ collection: EvaluationCollection; runs: TestRun[]; } | null>; addRunsToCollection(collectionId: string, testRunIds: string[]): Promise; removeRunFromCollection(collectionId: string, testRunId: string): Promise; removeRunsFromCollection(collectionId: string, testRunIds: string[]): Promise; deleteByIdAndWorkflowId(id: string, workflowId: string): Promise<{ deleted: boolean; runsUnlinked: number; }>; updateInsightsCache(id: string, insights: IDataObject | null): Promise; updateMeta(id: string, workflowId: string, payload: { name?: string; description?: string | null; }): Promise; }