export interface ConversationMessage { id: string; userId: string; text: string; timestamp: Date; isAssistant: boolean; metadata?: Record; } export interface ConversationThread { threadId: string; platform: 'slack' | 'cli'; messages: ConversationMessage[]; metadata?: Record; hasMore?: boolean; } export interface FetchHistoryOptions { limit?: number; maxContextLength?: number; excludeCurrent?: boolean; } export interface IConversationHistoryProvider { fetchHistory(threadId: string, options?: FetchHistoryOptions): Promise; formatForAI(thread: ConversationThread, options?: FetchHistoryOptions): Promise; hasHistory(threadId: string): Promise; }