import type { UIMessage } from 'ai'; export type ChatTurn = { role: 'user' | 'assistant'; content: string; createdAt: string; }; export declare function loadHistory(sessionId: string): Promise[]>; export declare function saveHistory(sessionId: string, messages: UIMessage[]): Promise; export declare function loadTurns(sessionId: string): Promise; export declare function saveTurns(sessionId: string, turns: ChatTurn[]): Promise; //# sourceMappingURL=history.d.ts.map