export interface Doc {
  id: number;
  name: string;
  chunks: number;
  size: string;
  status: 'indexed' | 'parsing' | 'pending' | 'failed';
  docId?: string;
  downloadUrl?: string;
  summary?: string;
  updatedAt?: string;
  regulationType?: string;
  version?: string;
}

export interface SearchResult {
  id: number;
  score: number;
  law: string;
  preview: string;
  source: string;
}

export interface ChatMessage {
  id: number;
  role: 'user' | 'assistant';
  content: string;
  retrievalIds?: number[];
  sources?: RetrievalData[];
}

export interface RetrievalData {
  id: number;
  file: string;
  clause: string;
  score: number;
  content: string;
  docId?: string;
  downloadUrl?: string;
}
