import { Camera, Ray, WebGLRenderer } from 'three'; import { PointCloudOctree } from './PointCloudOctree'; import { PickPoint } from '../types/types'; import { PickParams } from './PointCloudOctreePickerHelper'; export type { PickParams }; export declare class PointCloudOctreePicker { private static readonly helperVec3; private static readonly helperVec2; private static readonly REBUILD_HOLDOFF_MS; private pickState; private readonly _renderer; private readonly _pickerHelper; private _cache; private _invalidationCount; private _lastInvalidatedAt; constructor(renderer: WebGLRenderer); dispose(): void; /** * Invalidates the cached full-frame pick buffer. Must be called whenever the camera or scene content that * affects picking changes (point cloud LOD, styling or clipping), as the cache does not compare the camera itself. */ invalidateCache(): void; pick(camera: Camera, ray: Ray, octrees: PointCloudOctree[], params?: Partial): Promise; private pickWindowed; private isCacheUsable; private buildCache; /** Picks the smallest node-index bit width that fits every visible node, or undefined if there are no nodes or none fits. */ private computeNodeIndexBits; private renderAndReadBackPixels; private pickFromCache; }