import { z } from 'zod'; import type Buffer from 'bare-buffer'; export declare const ocrConfigSchema: z.ZodObject<{ langList: z.ZodOptional>; pipelineType: z.ZodOptional>; magRatio: z.ZodOptional; canvasSize: z.ZodOptional; defaultRotationAngles: z.ZodOptional>; contrastRetry: z.ZodOptional; lowConfidenceThreshold: z.ZodOptional; recognizerBatchSize: z.ZodOptional; nThreads: z.ZodOptional; backendDevice: z.ZodOptional>; gpuDevice: z.ZodOptional; mainGpu: z.ZodOptional]>>; detectorModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; }, z.core.$strip>; export declare function refineOcrMainGpuSelector(config: Pick, ctx: z.RefinementCtx): void; export declare function refineOcrMainGpu(config: Pick, ctx: z.RefinementCtx): void; export declare const ocrLoadConfigSchema: z.ZodObject<{ langList: z.ZodOptional>; pipelineType: z.ZodOptional>; magRatio: z.ZodOptional; canvasSize: z.ZodOptional; defaultRotationAngles: z.ZodOptional>; contrastRetry: z.ZodOptional; lowConfidenceThreshold: z.ZodOptional; recognizerBatchSize: z.ZodOptional; nThreads: z.ZodOptional; backendDevice: z.ZodOptional>; gpuDevice: z.ZodOptional; mainGpu: z.ZodOptional]>>; detectorModelSrc: z.ZodOptional; modelId: z.ZodOptional; registryPath: z.ZodOptional; registrySource: z.ZodOptional; blobCoreKey: z.ZodOptional; blobIndex: z.ZodOptional; engine: z.ZodOptional; expectedSize: z.ZodOptional; sha256Checksum: z.ZodOptional; addon: z.ZodOptional, z.ZodLiteral<"vad">]>>; }, z.core.$strip>]>>; }, z.core.$strip>; export declare const imageInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">; export declare const ocrOptionsSchema: z.ZodObject<{ paragraph: z.ZodOptional; }, z.core.$strip>; export declare const ocrParamsSchema: z.ZodObject<{ modelId: z.ZodString; image: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">; options: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const ocrStreamRequestSchema: z.ZodObject<{ modelId: z.ZodString; image: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"base64">; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"filePath">; value: z.ZodString; }, z.core.$strip>], "type">; options: z.ZodOptional; }, z.core.$strip>>; type: z.ZodLiteral<"ocrStream">; }, z.core.$strip>; export declare const ocrTextBlockSchema: z.ZodObject<{ text: z.ZodString; bbox: z.ZodOptional>; confidence: z.ZodOptional; }, z.core.$strip>; export declare const ocrStatsSchema: z.ZodObject<{ detectionTime: z.ZodOptional; recognitionTime: z.ZodOptional; totalTime: z.ZodOptional; }, z.core.$strip>; export declare const ocrStreamResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"ocrStream">; blocks: z.ZodOptional>; confidence: z.ZodOptional; }, z.core.$strip>>>; done: z.ZodOptional; error: z.ZodOptional; stats: z.ZodOptional; recognitionTime: z.ZodOptional; totalTime: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type OCRConfig = z.infer; export type ImageInput = z.infer; export type OCROptions = z.infer; export type OCRParams = z.infer; export type OCRClientParams = { modelId: string; image: string | Buffer; options?: OCROptions; stream?: boolean; }; export type OCRStreamRequest = z.infer; export type OCRStreamResponse = z.infer; export type OCRTextBlock = z.infer; export type OCRStats = z.infer;