import type { Document } from '@gltf-transform/core'; export interface PruneClippedReport { /** Triangles removed, and the vertices that went with them. */ triangles: number; vertices: number; /** Primitives that lost all their triangles and were removed. */ primitivesRemoved: number; primitivesChanged: number; } /** * Removes triangles no viewer can draw: those that sample only clipped texels of an alpha-cutout (MASK) or fully * transparent (BLEND) base-colour map, with the vertices only they used. * * Why: VRoid exports carry the parts of their stockings and hems that sit inside the shoes, and other cut-away geometry, * as triangles on fully transparent texels, some of them 30 cm behind the heel and 5 cm under the floor * (AvatarSample_A's `Bottoms`: 128 such triangles). Nothing shows them, but everything that measures the mesh counts * them: the avatar reads as sunk 9.7 cm into the floor, and as torn open by 91 cm when the leg swings, to the platform's * own checks. The surface a viewer draws is unchanged; the file is smaller. * * Conservative on purpose: only a triangle whose whole UV box, grown by `MARGIN_TEXELS`, is clipped goes; a map with a * texture transform, a second UV set, UVs outside 0..1 or a box too large to scan keeps its triangles. */ export declare function pruneClippedTriangles(document: Document): Promise;