/**
 * OCR Worker Bridge
 *
 * Manages the OCR worker lifecycle and provides an async interface for running
 * ocrRecognize() off the main thread. Falls back to direct (blocking) invocation
 * when workers are not available (e.g. edge runtimes).
 */
/**
 * Create and initialize the OCR worker.
 *
 * @param wasmGluePath - Absolute path (Node.js) or URL (browser) to the WASM glue JS module
 * @param wasmBinary - Pre-loaded WASM binary (Node.js file-system loaded bytes)
 * @param directFallback - Direct blocking function used when workers are unavailable
 */
export declare function createOcrWorker(wasmGluePath: string, wasmBinary: Uint8Array | undefined, directFallback: (imageData: Uint8Array, tessdata: Uint8Array, language: string) => string): Promise<void>;
/**
 * Run OCR in the worker thread. Returns a Promise that resolves with the recognized text.
 * Falls back to direct (blocking) call if workers are unavailable.
 */
export declare function runOcrInWorker(imageData: Uint8Array, tessdata: Uint8Array, language: string): Promise<string>;
/**
 * Check whether OCR is using the worker thread or the direct fallback.
 */
export declare function isUsingWorker(): boolean;
/**
 * Terminate the OCR worker and clean up resources.
 */
export declare function terminateOcrWorker(): Promise<void>;
//# sourceMappingURL=worker-bridge.d.ts.map