import type { MatchResult } from './ocr-types.js'; type DetectElementOptions = { FontCandidates?: readonly string[]; ScoreThreshold?: number; }; type DetectSourceOptions = DetectElementOptions & { HostElement: HTMLElement; SourceUrl: string; }; export declare function CreateOcrWorkerClient(BrowserWindow: typeof window, WorkerInstance: Worker): { DetectFromElement: (Element: HTMLElement, Options?: DetectElementOptions) => Promise; DetectFromSource: (Options: DetectSourceOptions) => Promise; Terminate(): void; }; export {};