import { z } from 'zod'; /** * Schema of a label. */ export declare const LabelSchema: z.ZodObject<{ name: z.ZodString; confidence: z.ZodNumber; type: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; confidence: number; type?: string | undefined; }, { name: string; confidence: number; type?: string | undefined; }>; /** * Label properties. */ export type LabelProps = z.infer; /** * Represents a label detected within an image. */ export declare class Label { props: LabelProps; /** * Label constructor. * @param props the properties of the label. */ constructor(props: LabelProps); /** * @returns a new Label object. */ static from(data: any): Label; /** * @returns the name of the label. */ name(): string; /** * @returns the confidence score associated with the * label detection. */ confidence(): number; /** * @returns the type of the label. */ type(): string | undefined; /** * @returns a JSON representation of the label. */ toJSON(): { name: string; confidence: number; type?: string | undefined; }; }