// Type declarations for optional tesseract.js dependency
declare module 'tesseract.js' {
  export interface TesseractResult {
    data: {
      text: string;
      confidence: number;
    };
  }

  export function recognize(
    image: string | Buffer,
    lang: string,
    options?: { logger?: (m: any) => void }
  ): Promise<TesseractResult>;
}
