export type Language = 'ar' | 'fr'; export interface Source { id: string; title: string; author: string; category: 'khidma' | 'tawhid' | 'tasawwuf'; content?: string; } export interface ChatMessage { role: 'user' | 'assistant'; content: string; timestamp: number; citations?: { sourceId: string; text: string }[]; sources?: string[]; } export interface Note { id: string; title: string; content: string; timestamp: number; } export interface ProjectOutput { id: string; title: string; content: string; type: 'summary' | 'analysis' | 'article'; } export interface Project { id: string; name: string; description: string; createdAt: number; sources: string[]; notes: Note[]; outputs: ProjectOutput[]; }