import type { AgentEvalDatasetRecord, ApplyAgentEvalSuggestionsResult, ApplyPreviewSuggestionOptions, ApplyPreviewSuggestionResult, AgentEvalResultRecord, AgentEvalRunDetail, AgentEvalRunList, AgentEvalRunRecord, AgentEvalRunSummary, CreateAgentEvalDatasetDto, CreateAgentEvalRunPayload, CreateDraftDatasetResult, GenerateDraftCasesOptions, GenerateDraftCasesResult, PreviewRunOptions, PreviewRunResult, RerunResultOptions, UpdateAgentEvalDatasetPayload } from '@n8n/api-types'; import { Logger, ModuleRegistry } from '@n8n/backend-common'; import type { User } from '@n8n/db'; import { AgentEvalDatasetRepository, AgentEvalResultRepository, AgentEvalRunRepository } from '@n8n/db'; import { CredentialsService } from '../../credentials/credentials.service'; import { AgentConfigService } from '../../modules/agents/agent-config.service'; import { AgentRepository } from '../../modules/agents/repositories/agent.repository'; import { AgentEvalCaseGenerationService } from './agent-eval-case-generation.service'; import { AgentEvalRunnerService } from './agent-eval-runner.service'; type PageParams = { take: number; skip: number; }; export declare class AgentEvalService { private readonly moduleRegistry; private readonly agentRepository; private readonly datasetRepository; private readonly runRepository; private readonly resultRepository; private readonly runner; private readonly caseGenerationService; private readonly agentConfigService; private readonly credentialsService; private readonly logger; constructor(moduleRegistry: ModuleRegistry, agentRepository: AgentRepository, datasetRepository: AgentEvalDatasetRepository, runRepository: AgentEvalRunRepository, resultRepository: AgentEvalResultRepository, runner: AgentEvalRunnerService, caseGenerationService: AgentEvalCaseGenerationService, agentConfigService: AgentConfigService, credentialsService: CredentialsService, logger: Logger); listDatasets(agentId: string, projectId: string): Promise; getDataset(agentId: string, projectId: string, datasetId: string): Promise; createDataset(user: User, agentId: string, projectId: string, payload: CreateAgentEvalDatasetDto): Promise; updateDataset(agentId: string, projectId: string, datasetId: string, payload: UpdateAgentEvalDatasetPayload): Promise; deleteDataset(agentId: string, projectId: string, datasetId: string): Promise; deleteDraftDataset(user: User, agentId: string, projectId: string, datasetId: string): Promise; generateDraftCases(user: User, agentId: string, projectId: string, options: GenerateDraftCasesOptions): Promise; createDraftDataset(user: User, agentId: string, projectId: string, datasetName?: string): Promise; previewRun(user: User, agentId: string, projectId: string, options: PreviewRunOptions): Promise; applyPreviewSuggestion(user: User, agentId: string, projectId: string, options: ApplyPreviewSuggestionOptions, pushRef?: string): Promise; startRun(user: User, agentId: string, projectId: string, datasetId: string, payload: CreateAgentEvalRunPayload): Promise; listRuns(agentId: string, projectId: string, datasetId: string, page: PageParams): Promise; getRunDetail(user: User, agentId: string, projectId: string, runId: string, page: PageParams): Promise; getRunSummary(agentId: string, projectId: string, runId: string): Promise; rerunResult(user: User, agentId: string, projectId: string, resultId: string, options?: RerunResultOptions): Promise; applySuggestions(user: User, agentId: string, projectId: string, resultIds: string[], pushRef?: string): Promise; acceptResult(agentId: string, projectId: string, resultId: string): Promise; deleteResult(agentId: string, projectId: string, resultId: string): Promise; cancelRun(agentId: string, projectId: string, runId: string): Promise; private assertAgentInProject; private resolveDataset; private assertDatasetSourceReadable; private assertDataTableReadable; private resolveRun; private resolveResult; } export {};