export type OcrPageResult = {
    readonly ok: true;
    readonly text: string;
    readonly confidence: number;
} | {
    readonly ok: false;
    readonly reason: "ocr-not-configured" | "timeout" | "unsupported-input";
};
export interface OcrAdapter {
    readonly kind: "ocr";
    readonly ocrPage: (input: {
        readonly bytes: Uint8Array;
        readonly pageNumber: number;
    }) => Promise<OcrPageResult>;
}
//# sourceMappingURL=types.d.ts.map