是否需要预处理
(filePath: string, fileSize: number)
| 138 | export interface Preprocessor { |
| 139 | /** 是否需要预处理 */ |
| 140 | needsPreprocess(filePath: string, fileSize: number): boolean |
| 141 | /** 执行预处理,返回临时文件路径 */ |
| 142 | preprocess(filePath: string, onProgress?: (progress: ParseProgress) => void): Promise<string> |
| 143 | /** 清理临时文件 */ |