/// import * as THREE from 'three'; export interface SurfacePointSample { idealDepth: number; actualDepth: number; adjustedOffset: number; } export interface SurfacePoint { samples: SurfacePointSample[]; pValue: number; debugMatrix: THREE.Matrix4; debugColor: THREE.Color; } export default class SurfaceHandler { surfaces: Surface[]; debugGroup: THREE.Group; setDebug(debug: boolean): void; getSurface(transform: XRRigidTransform): Surface; clear(): void; } export declare class Surface { transform: XRRigidTransform; plane: THREE.Plane; points: { [key: string]: SurfacePoint; }; debugGroup: THREE.Group; constructor(transform: XRRigidTransform); private threeMatrixCache?; private threeMatrix; private inverseThreeMatrixCache?; private inverseThreeMatrix; private readonly resolution; private updateDebugGroup; private getCachedPoint; testPoint(x: number, z: number): number; learnDepthInfo(camera: THREE.Camera, depthInfo: any): void; clear(): void; }