import React from 'react'; import { Object3DNode } from '@react-three/fiber'; import { Camera, FaceLandmarkGroup } from '@zappar/zappar-threejs'; import { ForwardRefComponent } from '../util/utils.js'; /** * The list of available landmarks to which the landmark group can be anchored. */ export type Landmark = 'eye-left' | 'eye-right' | 'ear-left' | 'ear-right' | 'nose-bridge' | 'nose-tip' | 'nose-base' | 'lip-top' | 'lip-bottom' | 'mouth-center' | 'chin' | 'eyebrow-left' | 'eyebrow-right'; declare module '@react-three/fiber' { interface ThreeElements { faceLandmarkGroup: Object3DNode; } } /** * The list of available landmarks to which the landmark group can be anchored. */ export interface FaceLandmarkProps extends Omit { /** A reference to a Zappar camera. */ camera?: React.MutableRefObject; /** Provide a reference to the FaceAnchorGroup component. */ trackerGroup?: React.MutableRefObject; /** The name of the landmark to track. */ target: Landmark; } /** * A `THREE.Group` which attaches content to a known point (landmark) on a face as it moves around in the camera view. * Landmarks will remain accurate, even as the user's expression changes. * @see https://docs.zap.works/universal-ar/web-libraries/react-threejs/face-tracking/ */ declare const FaceLandmark: ForwardRefComponent; export default FaceLandmark;