/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { NativeMesh, NativePlane, XRDevice } from 'iwer'; import { Scene as SceneFile } from './generated/protos/openxr_scene.js'; import { mat4 } from 'gl-matrix'; type HitTestTrackableType = 'point' | 'plane' | 'mesh'; export declare class SyntheticEnvironmentModule extends EventTarget { private xrDevice; readonly trackedPlanes: Set; readonly trackedMeshes: Set; readonly version = "2.3.0"; private renderer; private scene; private camera; private objectMap; private planes; private boxes; private meshes; private tempPosition; private tempQuaternion; private tempDirection; private tempScale; private tempMatrix; private raycaster; private hitTestTarget; private hitTestMarker; private worldNormal; private normalMatrix; private depthRenderTarget; private depthMaterial; private depthCamera; private _tempMatrix; private depthReadBuffer; constructor(xrDevice: XRDevice); get environmentCanvas(): HTMLCanvasElement; get planesVisible(): boolean; set planesVisible(visible: boolean); get boundingBoxesVisible(): boolean; set boundingBoxesVisible(visible: boolean); get meshesVisible(): boolean; set meshesVisible(visible: boolean); render(): void; deleteAll(): void; loadEnvironment(json: SceneFile): void; loadDefaultEnvironment(envId: string): Promise; computeHitTestResults(mat4: mat4, entityTypes?: HitTestTrackableType[]): import("three").Matrix4Tuple[]; computeDepthBuffer(viewMatrix: mat4, projectionMatrix: mat4, width: number, height: number, depthNear: number, depthFar: number): { data: ArrayBuffer; width: number; height: number; rawValueToMeters: number; } | null; } export {}; //# sourceMappingURL=sem.d.ts.map