import type { Document } from '@gltf-transform/core'; /** * Joins same-material, same-mode primitives WITHIN each mesh (i.e. within one LOD level's own * scene), never ACROSS meshes/LODs — a merged-LOD document keeps every level's own mesh, and * primitives from different levels must never end up sharing one draw call. Most useful right after * `unifyDominantMaterial`: once every primitive in a mesh is rebound onto the same material, the * primitives that were only ever kept separate because they carried DIFFERENT materials can now * collapse into a single draw call, cutting the LOD's draw-call count without changing anything * visible. A no-op mesh (fewer than 2 primitives, or already all on distinct material/mode groups) * costs nothing: `@gltf-transform/functions`' own `joinPrimitives` is called only per eligible group. */ export interface JoinPerMeshResult { primitivesBefore: number; primitivesAfter: number; /** Meshes where at least one group of primitives was actually joined. */ meshesJoined: number; } export declare function joinPrimitivesPerMesh(document: Document): JoinPerMeshResult;