import type { InstanceAiAgentNode } from '@n8n/api-types';
import type { AgentTreeSnapshot } from '@n8n/instance-ai';
import { InstanceAiRunSnapshotRepository } from '../repositories/instance-ai-run-snapshot.repository';
export declare class DbSnapshotStorage {
    private readonly repo;
    constructor(repo: InstanceAiRunSnapshotRepository);
    getLatest(threadId: string, options?: {
        messageGroupId?: string;
        runId?: string;
    }): Promise<AgentTreeSnapshot | undefined>;
    save(threadId: string, agentTree: InstanceAiAgentNode, runId: string, messageGroupId?: string, runIds?: string[]): Promise<void>;
    updateLast(threadId: string, agentTree: InstanceAiAgentNode, runId: string, messageGroupId?: string, runIds?: string[]): Promise<void>;
    getAll(threadId: string): Promise<AgentTreeSnapshot[]>;
}
