import { z } from 'zod'; export declare const DetectedTextSchema: z.ZodObject<{ text: z.ZodString; boundingBox: z.ZodObject<{ left: z.ZodNumber; top: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, "strip", z.ZodTypeAny, { left: number; width: number; height: number; top: number; }, { left: number; width: number; height: number; top: number; }>; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { text: string; confidence: number; boundingBox: { left: number; width: number; height: number; top: number; }; }, { text: string; confidence: number; boundingBox: { left: number; width: number; height: number; top: number; }; }>; export type DetectedTextProps = z.infer; /** * Represents a detected text within an image. */ export declare class DetectedText { props: DetectedTextProps; /** * Detected text constructor. * @param props the properties of the detected text. */ constructor(props: DetectedTextProps); /** * @returns a new detected text. */ static from(data: any): DetectedText; /** * @returns the text. */ text(): string; /** * @returns the bounding box of the detected text. */ boundingBox(): { left: number; width: number; height: number; top: number; }; /** * @returns the confidence score associated with the * detected text. */ confidence(): number; /** * @returns a JSON representation of the detected text. */ toJSON(): { text: string; confidence: number; boundingBox: { left: number; width: number; height: number; top: number; }; }; }