OpenMAIC-React / src /lib /pdf /types.ts
muthuk1's picture
Convert OpenMAIC from Next.js to React (Vite)
f56a29b verified
/**
* PDF Parsing Provider Type Definitions
*/
/**
* PDF Provider IDs
*/
export type PDFProviderId = 'unpdf' | 'mineru' | 'mineru-cloud';
/**
* PDF Provider Configuration
*/
export interface PDFProviderConfig {
id: PDFProviderId;
name: string;
requiresApiKey: boolean;
baseUrl?: string;
icon?: string;
features: string[]; // ['text', 'images', 'tables', 'formulas', 'layout-analysis', etc.]
}
/**
* PDF Parser Configuration for API calls
*/
export interface PDFParserConfig {
providerId: PDFProviderId;
apiKey?: string;
baseUrl?: string;
}
// Note: ParsedPdfContent is imported from @/lib/types/pdf to avoid duplication