import * as THREE from 'three/webgpu'; import type { SplatData } from '../core/splat-data'; /** Whether a brush selects only the picked surface corridor or the whole swept volume. */ export type SelectionDepthMode = 'surface' | 'through'; /** Whether selection tests Gaussian means or their full rendered ±3σ ellipsoids. */ export type SelectionFootprintMode = 'center' | 'footprint'; /** One depth-picked sample in an immutable world-space brush path. */ export interface BrushStrokeSample { readonly point: THREE.Vector3; /** World-space brush radius at this sample. */ readonly radius: number; /** Positive camera view depth captured with the stroke, when available. */ readonly viewDepth?: number; } /** A stroke split into paths at misses and depth discontinuities. */ export interface BrushStroke { readonly paths: readonly (readonly BrushStrokeSample[])[]; /** World → view matrix captured with the stroke, required by `surface` mode. */ readonly viewMatrix?: THREE.Matrix4; } /** Controls for {@link selectBrushStrokeInData}. */ export interface BrushStrokeSelectionOptions { /** Default `surface`. */ readonly depth?: SelectionDepthMode; /** Default `center`. */ readonly footprint?: SelectionFootprintMode; /** Gaussian support extent. Default `3`, matching VLAM's rendered ±3σ support. */ readonly footprintSigma?: number; /** Half-thickness of the visible depth corridor as a fraction of brush radius. Default `0.35`. */ readonly surfaceDepthFraction?: number; } /** * Selects splats intersected by a world-space brush stroke. * * Center mode is an exact union of linearly tapered capsules. Footprint mode * expands the test by the covariance support in the approach direction, using * VLAM's rendered ±3σ extent by default. `worldMatrix` maps `data` into the * stroke's world frame and may include rotation or non-uniform scale. */ export declare function selectBrushStrokeInData(data: SplatData, stroke: BrushStroke, options?: BrushStrokeSelectionOptions, worldMatrix?: THREE.Matrix4): Uint32Array; /** Validates a stroke before any persistent edit is recorded. Internal. */ export declare function validateBrushStroke(stroke: BrushStroke, options: BrushStrokeSelectionOptions): void;