/** * 批量处理器 - 支持多文件并行处理 */ export interface BatchFileResult { path: string; success: boolean; type: string; text?: string; error?: string; metadata?: Record; } export interface BatchResult { total: number; successful: number; failed: number; results: BatchFileResult[]; duration: number; } export interface BatchOptions { concurrency?: number; includeMetadata?: boolean; onProgress?: (completed: number, total: number, current: string) => void; } export declare class BatchProcessor { private pdfParser; private wordParser; private excelParser; private pptParser; private ocrParser; constructor(); /** * 检测文件类型 */ private detectFileType; /** * 处理单个文件 */ private processFile; /** * 批量处理多个文件 */ processFiles(filePaths: string[], options?: BatchOptions): Promise; /** * 批量处理目录中的所有支持文件 */ processDirectory(dirPath: string, options?: BatchOptions & { recursive?: boolean; }): Promise; /** * 批量搜索多个文件 */ searchFiles(filePaths: string[], query: string, options?: { caseSensitive?: boolean; concurrency?: number; }): Promise<{ total: number; filesWithMatches: number; results: Array<{ path: string; type: string; matches: Array<{ text: string; context?: string; }>; }>; }>; } //# sourceMappingURL=BatchProcessor.d.ts.map