import { Message, Conversation, Thread } from '../composables/useChatEngine'; export interface StorageProvider { saveConversation(conversation: Conversation): Promise; getConversation(id: string): Promise; listConversations(userId: string, options?: ListOptions): Promise; deleteConversation(id: string): Promise; updateConversation(id: string, updates: Partial): Promise; saveMessage(conversationId: string, message: Message): Promise; getMessages(conversationId: string, options?: MessageOptions): Promise; deleteMessage(messageId: string): Promise; updateMessage(messageId: string, updates: Partial): Promise; searchConversations(userId: string, query: string): Promise; getConversationStats(userId: string): Promise; } export interface ListOptions { limit?: number; offset?: number; sortBy?: 'createdAt' | 'updatedAt' | 'title'; sortOrder?: 'asc' | 'desc'; includeArchived?: boolean; tags?: string[]; } export interface MessageOptions { limit?: number; offset?: number; fromDate?: Date; toDate?: Date; } export interface ConversationStats { totalConversations: number; totalMessages: number; averageMessagesPerConversation: number; mostUsedTags: Array<{ tag: string; count: number; }>; conversationsByDate: Array<{ date: string; count: number; }>; } export declare class LocalStorageProvider implements StorageProvider { private prefix; constructor(prefix?: string); saveConversation(conversation: Conversation): Promise; getConversation(id: string): Promise; listConversations(userId: string, options?: ListOptions): Promise; deleteConversation(id: string): Promise; updateConversation(id: string, updates: Partial): Promise; saveMessage(conversationId: string, message: Message): Promise; getMessages(conversationId: string, options?: MessageOptions): Promise; deleteMessage(messageId: string): Promise; updateMessage(messageId: string, updates: Partial): Promise; searchConversations(userId: string, query: string): Promise; getConversationStats(userId: string): Promise; } export declare function createStorageProvider(config: any): StorageProvider; export declare const storageUtils: { generateConversationId: () => string; generateThreadId: () => string; generateMessageId: () => string; createConversation: (userId: string, title: string, threadId?: string) => Conversation; createThread: (title: string) => Thread; };