import { z } from 'zod'; /** * The pose of a face. */ export declare const PoseSchema: z.ZodObject<{ roll: z.ZodNumber; yaw: z.ZodNumber; pitch: z.ZodNumber; }, "strip", z.ZodTypeAny, { roll: number; yaw: number; pitch: number; }, { roll: number; yaw: number; pitch: number; }>; export type Pose = z.infer; /** * User defined attributes of a face. */ export declare const FaceAttributeSchema: z.ZodObject<{ value: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { value?: any; confidence?: number | undefined; }, { value?: any; confidence?: number | undefined; }>; export type FaceAttribute = z.infer; /** * Eye direction of a face. */ export declare const EyeDirectionSchema: z.ZodObject<{ pitch: z.ZodNumber; yaw: z.ZodNumber; }, "strip", z.ZodTypeAny, { yaw: number; pitch: number; }, { yaw: number; pitch: number; }>; export type EyeDirection = z.infer; /** * A description of a face detected in an image * with its attributes. */ export declare const FaceSchema: z.ZodObject<{ 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; }>; attributes: z.ZodOptional; confidence: z.ZodOptional; }, "strip", z.ZodTypeAny, { value?: any; confidence?: number | undefined; }, { value?: any; confidence?: number | undefined; }>>>; landmarks: z.ZodOptional, "many">>; pose: z.ZodOptional>; eyeDirection: z.ZodOptional>; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { confidence: number; boundingBox: { left: number; width: number; height: number; top: number; }; attributes?: Record | undefined; landmarks?: { type: string; x: number; y: number; }[] | undefined; pose?: { roll: number; yaw: number; pitch: number; } | undefined; eyeDirection?: { yaw: number; pitch: number; } | undefined; }, { confidence: number; boundingBox: { left: number; width: number; height: number; top: number; }; attributes?: Record | undefined; landmarks?: { type: string; x: number; y: number; }[] | undefined; pose?: { roll: number; yaw: number; pitch: number; } | undefined; eyeDirection?: { yaw: number; pitch: number; } | undefined; }>; export type FaceProps = z.infer; /** * Represents a face detected within an image. */ export declare class Face { props: FaceProps; /** * Face constructor. * @param props the properties of the Face. */ constructor(props: FaceProps); /** * @returns a new Face object. */ static from(data: any): Face; /** * @returns the bounding box of the face. */ boundingBox(): { left: number; width: number; height: number; top: number; }; /** * @returns the attributes of the face. */ attributes(): Record | undefined; /** * @returns the landmarks of the face. */ landmarks(): { type: string; x: number; y: number; }[] | undefined; /** * @returns the pose of the face. */ pose(): { roll: number; yaw: number; pitch: number; } | undefined; /** * @returns the eye direction of the face. */ eyeDirection(): { yaw: number; pitch: number; } | undefined; /** * @returns the confidence score associated with the * face detection. */ confidence(): number; /** * @returns a JSON representation of the face. */ toJSON(): { confidence: number; boundingBox: { left: number; width: number; height: number; top: number; }; attributes?: Record | undefined; landmarks?: { type: string; x: number; y: number; }[] | undefined; pose?: { roll: number; yaw: number; pitch: number; } | undefined; eyeDirection?: { yaw: number; pitch: number; } | undefined; }; }