export interface OCRExtractOptions { language?: string; preserveLayout?: boolean; } export interface OCRExtractResult { text: string; confidence: number; words?: Array<{ text: string; confidence: number; bbox: { x0: number; y0: number; x1: number; y1: number; }; }>; metadata: { language: string; extractedAt: string; }; } export interface OCRSearchResult { text: string; confidence: number; position: number; context: string; bbox?: { x0: number; y0: number; x1: number; y1: number; }; } export declare class OCRParser { private worker; private currentLanguage; /** * Initialize the OCR worker */ private getWorker; /** * Extract text from an image file using OCR */ extractText(filePath: string, options?: OCRExtractOptions): Promise; /** * Extract text from multiple images */ extractFromMultiple(filePaths: string[], options?: OCRExtractOptions): Promise<{ results: OCRExtractResult[]; combinedText: string; }>; /** * Search for text in an image */ searchText(filePath: string, query: string, caseSensitive?: boolean, language?: string): Promise; /** * Get supported languages */ getSupportedLanguages(): string[]; /** * Terminate the worker to free resources */ terminate(): Promise; } //# sourceMappingURL=OCRParser.d.ts.map