import type { ContentPart, ProviderMessage } from '../providers/interface.js';
import type { ConversationMessageSnapshot } from './conversation.js';
type Message = ConversationMessageSnapshot;
export declare function cloneMessages(messages: Message[]): Message[];
export declare function messagesToInternal(messages: ProviderMessage[]): Message[];
export declare function cloneBranchMap(branches: Map<string, Message[]>): Record<string, Message[]>;
export declare function restoreBranchMap(branches?: Record<string, Message[]>): Map<string, Message[]>;
export declare function deriveConversationTitle(content: string): string;
export declare function extractUserDisplayText(content: string | ContentPart[]): string;
export {};
//# sourceMappingURL=conversation-utils.d.ts.map