

export interface VisionAnalysisResult {
  text: string;              
  images: ImageDescription[]; 
  layout: string;            
  confidence: number;        
  pageIndex?: number;        
}

export interface ImageDescription {
  type: string;              
  description: string;       
  position?: number;         
}

export interface VisionModelConfig {
  baseUrl: string;
  apiKey: string;
  modelId: string;
}

export interface BatchAnalysisResult {
  results: VisionAnalysisResult[];
  totalPages: number;
  successCount: number;
  failedCount: number;
  estimatedCost: number;     
}

export interface PageQuality {
  isGood: boolean;
  reason?: string;
  score?: number;
}
