import { InstanceAiEvalExecutionRequest, InstanceAiEvalAgentExecutionRequest, InstanceAiEvalCredentialAllowlistRequest, InstanceAiEvalCredentialTestTargetRequest, InstanceAiEvalExportExecutionRequest, InstanceAiEvalRestoreExecutionRequest, InstanceAiEvalRestoreThreadRequest, InstanceAiEvalSeedDataTableRowsRequest } from '@n8n/api-types'; import type { InstanceAiEvalThreadMemoryResponse } from '@n8n/api-types'; import { AuthenticatedRequest } from '@n8n/db'; import type { NextFunction, Request, Response } from 'express'; import { EvalAgentExecutionService } from './agent-execution.service'; import { EvalExecutionService } from './execution.service'; import { FailedExecutionPortabilityService } from './failed-execution-portability.service'; import { EvalThreadCredentialAllowlistService } from './thread-credential-allowlist.service'; import { EvalThreadRestoreService } from './thread-restore.service'; import { InstanceAiMemoryService } from '../instance-ai-memory.service'; import { InstanceAiSettingsService } from '../instance-ai-settings.service'; import { InstanceAiService } from '../instance-ai.service'; export declare class InstanceAiEvalController { private readonly instanceAiService; private readonly memoryService; private readonly settingsService; private readonly evalExecutionService; private readonly evalAgentExecutionService; private readonly evalCredentialAllowlists; private readonly evalThreadRestore; private readonly failedExecutionPortability; constructor(instanceAiService: InstanceAiService, memoryService: InstanceAiMemoryService, settingsService: InstanceAiSettingsService, evalExecutionService: EvalExecutionService, evalAgentExecutionService: EvalAgentExecutionService, evalCredentialAllowlists: EvalThreadCredentialAllowlistService, evalThreadRestore: EvalThreadRestoreService, failedExecutionPortability: FailedExecutionPortabilityService); stripBrotli(req: Request, _res: Response, next: NextFunction): void; executeWithLlmMock(req: AuthenticatedRequest, _res: Response, workflowId: string, payload: InstanceAiEvalExecutionRequest): Promise<{ executionId: string; success: boolean; nodeResults: Record; errors: string[]; hints: import("@n8n/api-types").InstanceAiEvalMockHints; mockedCredentials: import("@n8n/api-types").InstanceAiEvalMockedCredential[]; rewrittenCredentials?: import("@n8n/api-types").InstanceAiEvalRewrittenCredential[]; llmUsage: import("@n8n/api-types").InstanceAiEvalLlmUsage[]; }>; executeAgentWithLlmMock(req: AuthenticatedRequest, _res: Response, agentId: string, payload: InstanceAiEvalAgentExecutionRequest): Promise<{ runId: string; success: boolean; errors: string[]; finalText: string; model?: string; finishReason?: string; toolCalls: import("@n8n/api-types").InstanceAiEvalAgentToolCallRecord[]; modelTurns: import("@n8n/api-types").InstanceAiEvalAgentModelTurnRecord[]; usage?: { inputTokens?: number; outputTokens?: number; }; seed: import("@n8n/api-types").InstanceAiEvalAgentScenarioSeed; skippedFeatures: import("@n8n/api-types").InstanceAiEvalAgentSkippedFeature[]; mockedCredentials: import("@n8n/api-types").InstanceAiEvalMockedCredential[]; llmUsage: import("@n8n/api-types").InstanceAiEvalLlmUsage[]; }>; setThreadCredentialAllowlist(req: AuthenticatedRequest, _res: Response, payload: InstanceAiEvalCredentialAllowlistRequest): Promise<{ ok: boolean; }>; setThreadCredentialTestTarget(req: AuthenticatedRequest, _res: Response, payload: InstanceAiEvalCredentialTestTargetRequest): Promise<{ ok: boolean; }>; getEvalThreadMemory(req: AuthenticatedRequest, _res: Response, threadId: string): Promise; exportExecution(req: AuthenticatedRequest, _res: Response, payload: InstanceAiEvalExportExecutionRequest): Promise; restoreExecution(req: AuthenticatedRequest, _res: Response, payload: InstanceAiEvalRestoreExecutionRequest): Promise; private threadProjectId; restoreEvalThread(req: AuthenticatedRequest, _res: Response, payload: InstanceAiEvalRestoreThreadRequest): Promise<{ ok: boolean; threadId: string; restored: number; workflowIds: string[]; dataTableIds: string[]; agentIds: string[]; folderIds: string[]; }>; seedEvalDataTableRows(req: AuthenticatedRequest, _res: Response, payload: InstanceAiEvalSeedDataTableRowsRequest): Promise<{ ok: boolean; tableId: string; rowCount: number; }>; private requireInstanceAiEnabled; private assertThreadAccess; }