import { type ConversationItem } from '#blokkli/agent/app/types'; import type { ConversationStateSnapshot, UsageTurn } from '#blokkli/agent/shared/types'; import type { AgentConversationData, AgentConversationFeedbackItem, AgentConversationHostInfo } from '#blokkli/agent/app/features/agent/types'; import type { BlokkliUser } from '#blokkli/editor/types/user'; export type ParsedConversation = { uuid: string; title: string; createdAt: string; updatedAt: string; host: AgentConversationHostInfo | null; author: BlokkliUser | null; conversation: ConversationItem[]; usageTurns: UsageTurn[]; serverState: ConversationStateSnapshot; feedbackItemIds: string[]; feedback: AgentConversationFeedbackItem[]; }; /** * Parse a stored conversation into the runtime shape used by the conversation * rendering. Pure — does not touch any reactive state — so it can be reused by * both the live editor session (which then applies it via the provider) and * the admin moderation modal (which renders it read-only). * * Returns null if the stored data is missing required pieces or fails to * parse; callers should treat that as "unrenderable". */ export declare function parseConversationData(data: AgentConversationData): ParsedConversation | null;