/** Small procedural GLBs for the item-lod specs: real glTF files through the real readers, no checked-in binaries. */ export interface Geometry { positions: Float32Array; normals: Float32Array; uvs: Float32Array; indices: Uint32Array; } export declare function sphereGeometry(rings: number, segments: number, radius?: number): Geometry; /** A torus (a ring-shaped closed surface), the shape the owner-proxy published untextured. */ export declare function torusGeometry(rings: number, segments: number, major?: number, minor?: number): Geometry; export declare function boxGeometry(width?: number, height?: number, depth?: number): Geometry; export type FixtureTexture = 'png' | 'webp' | 'ktx2'; export interface FixturePart { geometry: Geometry; color?: [number, number, number, number]; texture?: FixtureTexture; /** A primitive with no material at all (glTF's default material). */ noMaterial?: boolean; alphaMode?: 'OPAQUE' | 'MASK' | 'BLEND'; transmission?: number; /** Default 0.1 and 0.6. A mirror is metallic 1, roughness 0. */ metallic?: number; roughness?: number; /** Emissive factor (linear RGB); the default is none. */ emissive?: [number, number, number]; translation?: [number, number, number]; scale?: [number, number, number]; /** Share one mesh between several nodes (instancing). */ instances?: Array<[number, number, number]>; } export interface FixtureOptions { parts: FixturePart[]; compression?: 'none' | 'meshopt'; skinned?: boolean; textureSize?: number; } export declare function buildGlb(options: FixtureOptions): Promise; /** * A Draco-compressed GLB (KHR_draco_mesh_compression) of one geometry, encoded with the Draco encoder three ships (the calls its DRACOExporter makes). gltf-transform's own * Draco writer needs the draco3d package, which is not a dependency; three ships the encoder the exporter wraps. */ export declare function buildDracoGlb(geometry: Geometry): Promise;