import { type Asset, type Entity, Script } from 'playcanvas'; /** * Fits a deforming mesh to the user's face. Attach this to a child of a * {@link ZapparFaceTracker} entity so it inherits the tracked pose. * @see https://docs.zap.works/universal-ar/web-libraries/playcanvas/face-tracking/ */ export declare class ZapparFaceMesh 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; /** * Fill the mouth cavity of the mesh. * @attribute */ fillMouth: boolean; /** * Fill the left eye of the mesh. * @attribute */ fillEyeLeft: boolean; /** * Fill the right eye of the mesh. * @attribute */ fillEyeRight: boolean; /** * Use the full-head simplified mesh (covers the whole head and some neck). * @attribute */ fullHead: boolean; /** * Render as an occluder, writing depth only, so content behind the head is hidden. * @attribute */ mask: boolean; /** * Material for the mesh. A default is created when left blank. * @attribute * @type {import('playcanvas').Asset} * @resource material */ material: Asset | null; private readonly faceMesh; private mesh?; private built; initialize(): void; update(): void; private buildMesh; private writeGeometry; private resolveMaterial; private resolveFaceTracker; private onDestroy; }