import type { TuiComposerHistoryItem } from './tui-backend.js'; /** Session-scoped history; late responses never replace another session's editor history. */ export declare function createTuiComposerHistory(opts: { currentConversationId: () => string; load: (conversationId: string) => Promise; persist: (conversationId: string, text: string) => Promise; replace: (texts: string[]) => void; }): { append: (item: TuiComposerHistoryItem) => void; refresh: (id?: string) => Promise; switchSession: () => void; clear: (id: string) => void; record: (text: string, id?: string) => void; };