import type { HistoryMessage } from './tui-backend.js'; import { ChatLog } from './components/chat-log.js'; export declare function historyMessageKey(message: HistoryMessage, index: number): string; export declare function historyKeysHaveAppendOnlyPrefix(previousKeys: readonly string[], nextKeys: readonly string[]): boolean; /** Replay persisted transcript into the scroll log (synthetic run ids per assistant row). */ export declare function appendHistoryToChatLog(chatLog: ChatLog, messages: HistoryMessage[], toolsExpanded: boolean, showThinking?: boolean, opts?: { startIndex?: number; }): void;