import { type Entity, Script } from 'playcanvas'; /** The face features a landmark can attach to. */ export type LandmarkName = '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'; /** * Attaches content to a known point (landmark) on a face, accurate even as the * user's expression changes. * @see https://docs.zap.works/universal-ar/web-libraries/playcanvas/face-tracking/ */ export declare class ZapparFaceLandmark extends Script { static scriptName: string; /** * The Zappar camera entity. Leave blank to use the scene's Zappar camera. * @attribute * @type {import('playcanvas').Entity} */ camera: Entity | null; /** * The face tracker entity to read anchors from. * @attribute * @type {import('playcanvas').Entity} */ faceTrackerEntity: Entity | null; /** * Which face feature this landmark tracks. * @attribute * @type {'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'} */ landmark: LandmarkName; private faceLandmark; private zapparCamera; private readonly faceMatrix; private readonly landmarkMatrix; private readonly rotation; private readonly translation; initialize(): void; update(): void; private resolveFaceTracker; }