/**
 * OCR enabler module
 *
 * Provides convenient functions for enabling and setting up OCR backends.
 * Automatically selects the appropriate backend based on build capabilities:
 * - Native WASM OCR (kreuzberg-tesseract compiled to WASM, works everywhere)
 * - Browser fallback: TesseractWasmBackend (using tesseract-wasm npm package + createImageBitmap)
 */
/**
 * Enable OCR functionality with the appropriate backend for the current runtime
 *
 * Automatically selects the best available OCR backend:
 * 1. **Native WASM OCR** (preferred): If built with `ocr-wasm` feature, uses kreuzberg-tesseract
 *    compiled directly into the WASM binary. Works in all environments (Browser, Node.js, Deno).
 * 2. **Browser fallback**: Uses `TesseractWasmBackend` with the `tesseract-wasm` npm package
 *    (requires `createImageBitmap` browser API).
 *
 * ## Network Requirement
 *
 * Training data will be loaded from jsDelivr CDN on first use of each language.
 * Ensure network access to cdn.jsdelivr.net is available.
 *
 * @throws {Error} If WASM is not initialized or no OCR backend is available
 *
 * @example Basic Usage (works in all environments)
 * ```typescript
 * import { enableOcr, extractBytes, initWasm } from '@kreuzberg/wasm';
 *
 * await initWasm();
 * await enableOcr();
 *
 * const imageBytes = new Uint8Array(buffer);
 * const result = await extractBytes(imageBytes, 'image/png', {
 *   ocr: { backend: 'kreuzberg-tesseract', language: 'eng' }
 * });
 *
 * console.log(result.content);
 * ```
 */
export declare function enableOcr(): Promise<void>;
//# sourceMappingURL=enabler.d.ts.map