import { Delegate, type DetectionError, type Dims, type Landmark, type MediaPipeSolution, type RunningMode, type TransformMatrix } from "../shared/types"; export interface FaceLandmarkConnection { start: number; end: number; } interface KnownLandmarks { lips: FaceLandmarkConnection[]; leftEye: FaceLandmarkConnection[]; leftEyebrow: FaceLandmarkConnection[]; leftIris: FaceLandmarkConnection[]; rightEye: FaceLandmarkConnection[]; rightEyebrow: FaceLandmarkConnection[]; rightIris: FaceLandmarkConnection[]; faceOval: FaceLandmarkConnection[]; connectors: FaceLandmarkConnection[]; tesselation: FaceLandmarkConnection[]; } export interface FaceLandmarksModuleConstants { knownLandmarks: KnownLandmarks; } export declare function faceLandmarkDetectionModuleConstants(): FaceLandmarksModuleConstants; export interface FaceLandmarkDetectionResultBundle { results: FaceLandmarkerResult[]; inferenceTime: number; inputImageHeight: number; inputImageWidth: number; } interface Category { categoryName?: string; displayName?: string; score: number; } interface Classifications { headIndex: number; headName?: string; categories: Category[]; } export interface FaceLandmarkerResult { faceLandmarks: Landmark[][]; faceBlendshapes: Classifications[]; facialTransformationMatrixes: TransformMatrix[]; } export interface FaceLandmarkDetectionOptions { numFaces: number; minFaceDetectionConfidence: number; minFacePresenceConfidence: number; minTrackingConfidence: number; delegate: Delegate; mirrorMode: "no-mirror" | "mirror" | "mirror-front-only"; } export interface FaceLandmarkDetectionCallbacks { onResults: (result: FaceLandmarkDetectionResultBundle, viewSize: Dims, mirrored: boolean) => void; onError: (error: DetectionError) => void; viewSize: Dims; mirrored: boolean; } export declare function useFaceLandmarkDetection(onResults: FaceLandmarkDetectionCallbacks["onResults"], onError: FaceLandmarkDetectionCallbacks["onError"], runningMode: RunningMode, model: string, options?: Partial): MediaPipeSolution; export declare function faceLandmarkDetectionOnImage(imagePath: string, model: string, options?: Partial): Promise; export {}; //# sourceMappingURL=index.d.ts.map