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