import { DataSource, Repository } from '@n8n/typeorm'; import type { IDataObject, JsonObject } from 'n8n-workflow'; import { AgentEvalResult } from '../entities'; import type { AgentEvalResultStatus } from '../entities/agent-eval-result.ee'; type CreateAgentEvalResultAttrs = { runId: string; sourceRowId?: string | null; runIndex?: number | null; input?: JsonObject | null; }; export type AgentEvalResultStatusCounts = Record; export declare class AgentEvalResultRepository extends Repository { constructor(dataSource: DataSource); seedResults(cases: CreateAgentEvalResultAttrs[]): Promise; countByStatus(runId: string): Promise; markAsRunning(id: string): Promise; claimForRerun(id: string): Promise; markAsCancelled(id: string): Promise; markAsCompleted(id: string, attrs: { output: JsonObject | null; toolCalls?: JsonObject | null; metrics?: IDataObject | null; verdict?: JsonObject | null; }): Promise; markAsError(id: string, errorCode: string, errorDetails?: IDataObject | null): Promise; updateVerdict(id: string, verdict: JsonObject | null): Promise; updateInput(id: string, input: JsonObject): Promise; findAndCountByRunId(runId: string, options?: { skip?: number; take?: number; }): Promise<[AgentEvalResult[], number]>; findById(id: string): Promise; deleteById(id: string, runId: string): Promise; } export {};