import type { InstanceAiMessage } from '@n8n/api-types';
import type { AgentTreeSnapshot } from '@n8n/instance-ai';
type RunSnapshots = AgentTreeSnapshot[];
export interface MastraDBMessage {
    id: string;
    role: string;
    content: unknown;
    type?: string;
    createdAt: Date;
}
export declare function parseStoredMessages(mastraMessages: MastraDBMessage[], snapshots?: RunSnapshots): InstanceAiMessage[];
export {};
