import type { Pipeline } from '@zappar/zappar'; import { type AppBase, type CameraComponent, Texture } from 'playcanvas'; /** Name of the layer the camera feed is drawn on. */ export declare const BACKGROUND_LAYER_NAME = "ZapparCameraBackground"; /** * Renders the Zappar camera feed as a fullscreen background quad, on its own * layer inserted before the scene so it always sits behind tracked content. */ export declare class CameraBackground { /** The camera-feed texture. Its underlying GL texture is swapped each frame. */ readonly texture: Texture; private readonly app; private readonly device; private readonly material; private readonly layer; private readonly node; private readonly meshInstance; private readonly cameraComponent; constructor(app: AppBase, cameraComponent: CameraComponent); /** Uploads the latest camera frame and points the background texture at it. */ update(pipeline: Pipeline, mirror: boolean): void; /** Removes the background layer and releases GPU resources. */ destroy(): void; }