/** * OCR text extraction using Tesseract. * * Converts TSV OCR output into UIElement-compatible entries so OCR data can * be used as a fallback (or merged) in the same screen understanding pipeline. */ import type { AdbExecOptions } from "./exec.js"; import type { UIElement } from "./types.js"; export interface OcrResult { source: "ocr"; screenshotPath: string; confidenceThreshold: number; elements: UIElement[]; } export declare function runOcrOnImage(screenshotPath: string, options?: { confidenceThreshold?: number; timeout?: number; }): Promise; export declare function runOcrOnCurrentScreen(options?: AdbExecOptions & { confidenceThreshold?: number; }): Promise;