import type { Csm2Mesh } from './csm2'; export interface Csm2LodTarget { ratio: number; relativeError: number; maxErrorM: number; /** Keep open borders fixed (default true). A prefab made of many open shells has so many border vertices that the budget is unreachable with them locked. */ lockBorder?: boolean; /** Simplify by position only (default false: normals and UVs weigh in). A prefab drawn as a triangle soup, a vertex for each corner of each triangle, never collapses through its attribute seams; position-only welds them. */ positionsOnly?: boolean; /** Let the simplifier remove whole isolated components inside the error limit (default false). A prefab built from hundreds of thousands of separate panels has a floor of two triangles per panel otherwise. */ prune?: boolean; } export interface Csm2GeneratedLod { mesh: Csm2Mesh; target: Csm2LodTarget | null; groups: Array<{ sourceTriangles: number; triangles: number; error: number; errorLimit: number; }>; } export declare const CSM2_BUILDING_LOD_TARGETS: readonly Csm2LodTarget[]; /** Generate complete assemblies; mesh/submesh IDs remain material identities, never inferred detail levels. * LOD0 and vertex attributes are borrowed unchanged. Lower levels own their index/group arrays. * Error is meshoptimizer's approximate combined geometry/attribute metric, not a certified surface distance. */ export declare function generateCsm2Lods(mesh: Csm2Mesh, targets?: readonly Csm2LodTarget[]): Promise;