import * as Zappar from '@zappar/zappar'; import { type Entity, Script, Vec3 } from 'playcanvas'; /** * Attaches content to a point on a surface in front of the user. Until the pose * is "placed", the anchor tracks a point at `anchorCameraOffset` in camera space. * @see https://docs.zap.works/universal-ar/web-libraries/playcanvas/instant-world-tracking/ */ export declare class ZapparInstantTracker 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; /** * Optional button entity. Tapping it toggles the placement state. * @attribute * @type {import('playcanvas').Entity} */ placementButton: Entity | null; /** * The camera-space point the anchor tracks from before placement. * @attribute */ anchorCameraOffset: Vec3; /** Whether the anchor pose has been locked in place. */ hasPlaced: boolean; /** The underlying Zappar instant world tracker. */ instantTracker: Zappar.InstantWorldTracker; private zapparCamera; initialize(): void; update(): void; private togglePlacement; private onPlacementEvent; private onDestroy; }