import { ProgressCallback } from './docParser'; export interface WorkerParseResult { success: boolean; document?: any; text?: string; error?: string; } /** * Parse a .doc file in a Web Worker to avoid blocking the main thread. * * Uses Vite's native worker bundling (`new Worker(new URL(...), { type: 'module' })`). * Falls back to main-thread parsing if Workers are unavailable. * * @param buffer - The .doc file as an ArrayBuffer. * @param maxScanBytes - Optional scan limit (passed to DocParser). * @param onProgress - Optional progress callback (stage, percent 0-100). * @returns A promise resolving to the parse result. */ export declare function parseWithWorker(buffer: ArrayBuffer, maxScanBytes?: number, onProgress?: ProgressCallback): Promise;