import * as Zappar from '@zappar/zappar';
import { Mat4, Script } from 'playcanvas';
import { EVENT_CAMERA_READY } from './internal/active-camera.js';
/** How the scene and camera feed are mirrored. */
export type MirrorMode = 'none' | 'poses' | 'css';
/** How the camera moves around the scene. */
export type CameraPoseMode = 'default' | 'attitude' | 'anchor';
export { EVENT_CAMERA_READY };
/**
* Renders the device camera feed as a background and drives the scene
* projection/pose from Zappar's CV pipeline. Attach to an entity that also has
* a `camera` component. Requires a WebGL2 graphics device.
*
* @see https://docs.zap.works/universal-ar/
*/
export declare class ZapparCamera extends Script {
static scriptName: string;
/**
* Use the front-facing (selfie) camera instead of the rear camera.
* @attribute
*/
frontFacingCamera: boolean;
/**
* How the scene and camera feed are mirrored.
* @attribute
* @type {'none' | 'poses' | 'css'}
*/
mirrorMode: MirrorMode;
/**
* How the camera moves around the scene.
* @attribute
* @type {'default' | 'attitude' | 'anchor'}
*/
poseMode: CameraPoseMode;
/**
* Near clipping plane.
* @attribute
* @range [0.001, 100]
*/
nearClip: number;
/**
* Far clipping plane.
* @attribute
* @range [1, 10000]
*/
farClip: number;
/** The Zappar pipeline driving this camera. Shared with trackers. */
pipeline: Zappar.Pipeline;
/** The current camera pose as a PlayCanvas matrix. Read by trackers. */
readonly cameraPoseMatrix: Mat4;
/** Whether anchor poses should be mirrored (true in `poses` mirror mode). */
mirror: boolean;
/** The anchor used as the world origin when `poseMode` is `anchor`. */
poseAnchorOrigin?: Zappar.Anchor;
/**
* Use an `
`/`