import * as Zappar from '@zappar/zappar'; import { type Entity, Script } from 'playcanvas'; /** Which world-tracking anchor drives the entity. */ export type WorldAnchorType = 'world' | 'ground'; /** * Attaches content to a point in a SLAM-tracked map of the user's environment. * @see https://docs.zap.works/universal-ar/web-libraries/playcanvas/world-tracking/ */ export declare class ZapparWorldTracker 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; /** * Which anchor to follow: the initial `world` anchor or the estimated `ground` plane. * @attribute * @type {'world' | 'ground'} */ anchorType: WorldAnchorType; /** The underlying Zappar world tracker. */ worldTracker: Zappar.WorldTracker; private zapparCamera; initialize(): void; update(): void; private onDestroy; }