import type { LodRun } from '../../streaming/lod-scheduler'; import type { LodSourceOptions, StreamedScene } from '../../streaming/lod-source'; import type { SplatDatasetSource } from '../../streaming/dataset-source'; /** * Reader for XGRIDS' `.lcc2` datasets (see `docs/formats/lcc2-notes.md`). * * An `.lcc2` manifest is a cut-based LOD octree: each node holds one splat * range (`{file, start, count}`) representing its spatial region at one * level, and every level fully tiles the scene, so rendering picks a *cut* * (one node per root→leaf path) rather than a level per leaf. Coarse nodes * are shared ancestors, so per-leaf independent selection would double-draw; * {@link OctreeLodSource} therefore selects a valid cut directly. * * The splat tiles are standard SOG v2 bundles (one file packs many nodes at * different `start` offsets), so the existing chunk cache and pool reuse * everything. Implemented from XGRIDS' openly published spec; no XGRIDS code * is used, and their capture data is never redistributed. */ /** Optional host quality policy for desktop LCC2; other formats keep their own ladder. */ export interface Lcc2QualityPolicy { /** Use a budget-derived base split and scene-scaled adaptive detail distances. */ readonly quality: 'desktop'; } /** Read-only manifest selection diagnostics, before fetch/staging/publication. */ export interface Lcc2SelectionState { readonly profile: 'desktop' | 'distance'; readonly totalLevels: number; readonly baseDepth: number | null; readonly budget: number; readonly manifestNodeDepthCounts: Readonly>; readonly desired: readonly (LodRun & { readonly depth: number; })[]; } /** LCC2-specific options for manifest selection without changing persisted scene data. */ export interface Lcc2SceneOptions extends LodSourceOptions { readonly lcc2Policy?: Lcc2QualityPolicy; } /** Builds a scene from a parsed `.lcc2` manifest (JSON already fetched). */ export declare function buildLcc2Scene(json: unknown, dataset: SplatDatasetSource, options: Lcc2SceneOptions, shBands?: 0 | 1 | 2 | 3): StreamedScene;