import { Document, type Node } from '@gltf-transform/core'; /** * Synthetic skinned tubes for the pose-aware fit's integration tests: a "body" (closed-ish cylinder, outward * normals) and "garments" (open cylinders — their end rings are hems), all bound 100% to `spine_01`, which * the canonical `crouch` / `run-stride` poses rotate. Real GLBs are exercised by the demo runs, not here. */ export interface TubeSpec { radius: number | ((angle: number, y: number) => number); y0: number; y1: number; segments: number; rings: number; /** Winding: 'out' = normals point away from the axis (a shell), 'in' = toward it (a lining). */ facing: 'out' | 'in'; /** Duplicate the angle-0 column as a UV seam (two coincident vertices per ring). */ seam?: boolean; } export interface Rig { document: Document; joints: Record; } /** root > pelvis (y=0.9) > spine_01 (y=1.0). `skeletons` > 1 builds that many same-named copies, each with its * own skin — the duplicated-skeleton shape the shipped base bodies still have. */ export declare function buildRig(skeletons?: number): Rig & { skins: ReturnType[]; }; /** Adds a skinned tube mesh (every vertex 100% on joint index 2, spine_01) to `rig`, bound to skin `skinIndex`. */ export declare function addTube(rig: Rig & { skins: ReturnType[]; }, name: string, spec: TubeSpec, skinIndex?: number): Node; export declare function positionsOf(node: Node): Float32Array;