import { WebGLRenderer } from 'three'; import { IntersectInput } from '../../../model-base'; import { CadMaterialManager } from '../../../rendering'; import { SceneHandler } from '../../../utilities'; import { CadNode } from '../wrappers/CadNode'; import { CadPickCache } from './CadPickCache'; import { IntersectCadNodesResult } from './types'; export declare class PickingHandler { private readonly _clearColor; private readonly _clearAlpha; private readonly _raycaster; private readonly _pickPixelColorStorage; private readonly _pipelineExecutor; private readonly _depthRenderPipeline; private readonly _treeIndexRenderPipeline; private readonly _mutex; private readonly _pickCache; constructor(renderer: WebGLRenderer, materialManager: CadMaterialManager, sceneHandler: SceneHandler, pickCache?: CadPickCache); /** * Invalidates the cached full-frame pick buffer. Must be called whenever a new frame of the * scene content that affects picking changes (sector loading, styling, clipping or model transforms). */ invalidatePickCache(): void; dispose(): void; intersectCadNodes(cadNodes: CadNode[], input: IntersectInput, shouldRunAsync?: boolean): Promise; private filterOutOfBoundCadNodes; private intersectCadNodeDepth; private intersectCadNodeTreeIndex; private pickTreeIndex; private pickDepth; private pickPixel; }