import { type Frame } from 'react-native-vision-camera'; /** * Performs OCR (Optical Character Recognition) on camera frames. * Detects and extracts text from images in real-time. * * @param frame - The camera frame to process * @returns Object containing recognized text or null if no text found */ export type OcrOptions = { includeBoxes?: boolean; includeConfidence?: boolean; recognitionLevel?: 'fast' | 'accurate'; recognitionLanguages?: string[]; usesLanguageCorrection?: boolean; }; export type OcrBox = { x: number; y: number; width: number; height: number; }; export type OcrWord = { text: string; box?: OcrBox; confidence?: number; }; export type OcrLine = { text: string; box?: OcrBox; words?: OcrWord[]; confidence?: number; }; export type OcrBlock = { text: string; box?: OcrBox; lines?: OcrLine[]; }; export type OcrResult = { text: string; blocks?: OcrBlock[]; }; export declare function performOcr(frame: Frame, options?: OcrOptions): OcrResult | null; //# sourceMappingURL=index.d.ts.map