import { WorkflowRepository } from '@n8n/db';
import type { Request, Response } from 'express';
import { InstanceAiThreadRepository } from './repositories/instance-ai-thread.repository';
import { InstanceAiService } from './instance-ai.service';
export declare class InstanceAiTestController {
    private readonly instanceAiService;
    private readonly threadRepo;
    private readonly workflowRepo;
    constructor(instanceAiService: InstanceAiService, threadRepo: InstanceAiThreadRepository, workflowRepo: WorkflowRepository);
    loadToolTrace(req: Request): {
        ok: boolean;
        count: number;
    };
    getToolTrace(_req: Request, _res: Response, slug: string): {
        events: unknown[];
    };
    clearToolTrace(_req: Request, _res: Response, slug: string): {
        ok: boolean;
    };
    reset(): Promise<{
        ok: boolean;
        threadsDeleted: number;
        workflowsDeleted: number;
    }>;
    private assertTraceReplayEnabled;
}
