/** @role Bridge - Camera-aware rendering for worker-built static splat hierarchies. */ import * as THREE from 'three/webgpu'; import { type SplatDataLoadOptions } from '../loaders/load-splat-data'; import { SplatMesh, type SplatMeshOptions, type SplatUpdateOptions } from '../core/splat-mesh'; import type { StaticLodBuildProgress } from './static-lod'; export interface StaticLodSplatMeshOptions extends SplatMeshOptions { /** Initial selected-frontier budget. Defaults to the build ceiling. */ budget?: number; /** Finest frontier retained by the hierarchy and immutable pool ceiling. */ maxBudget: number; /** Reports the spatial ordering and hierarchy-build phase. */ onLodProgress?: (progress: StaticLodBuildProgress) => void; /** Phase-aware progress spanning download, decode completion and LOD build. */ onAutoLodProgress?: (progress: StaticLodLoadProgress) => void; } export interface StaticLodLoadProgress { readonly phase: 'download' | 'decode' | 'lod-build'; readonly completed: number; readonly total: number; } export interface StaticLodSplatMeshLoadOptions extends StaticLodSplatMeshOptions, SplatDataLoadOptions { } /** * Static splat mesh backed by a merged hierarchy and camera-aware frontier. * The full hierarchy is uploaded once; camera/budget cuts only remap the * active pool indices and never rewrite resident splat attributes. */ export declare class StaticLodSplatMesh extends SplatMesh { private readonly worker; private readonly ceilingValue; private readonly contentCountValue; private budgetValue; private sequence; private lastScheduleAt; private selectionPending; private readonly cameraLocal; private readonly cameraForward; private readonly inverseWorld; private constructor(); /** Loads, decodes and builds a merged static hierarchy without blocking UI. */ static load(input: string | URL, options: StaticLodSplatMeshLoadOptions): Promise; get budget(): number; get budgetCeiling(): number; get maxBudget(): number; get contentSplatCount(): number; /** Changes the selected frontier budget within the immutable build ceiling. */ setBudget(value: number): number; update(camera: THREE.PerspectiveCamera, renderer: THREE.WebGPURenderer, options?: SplatUpdateOptions): void; /** Schedules a camera-aware cut when a unified renderer owns drawing/sorting. */ updateLod(camera: THREE.PerspectiveCamera): void; dispose(): void; private scheduleSelection; }