import { type MaterialAudit, type RigSample, type SkinSample } from '../../visualQa/avatarMath'; import type { PreviewPose, PreviewRest } from '../../visualQa/avatarPreviewMath'; import type { VisualQaAssert } from '../../visualQa/types'; export interface GroundMeasure { restSoleM: number | null; nv: number; } /** The lowest rest (bind-pose) vertex, in metres above the skeleton root's ground plane. */ export declare function measureRestSole(rest: PreviewRest): GroundMeasure; export declare function groundedAssert(rest: PreviewRest | null): VisualQaAssert; /** * Per limb bone: its twist about its own axis (towards its child) away from its bind rotation, and the direction each knee * bends, at every pose. Mirrors avatarProbe.ts `rigInit`/`rigSample`, from the matrices the preview probe reads. */ export declare function rigSamples(rest: PreviewRest, poses: PreviewPose[]): { init: { limbs: number; names: string[]; }; samples: RigSample[]; }; export declare function limbsAssert(rest: PreviewRest | null, poses: PreviewPose[]): VisualQaAssert; /** * Posed vs rest triangles over the walk: the area share collapsed (< 15 % of the median ratio), stretched (> 4x) and with an * edge stretched > 3x, normalised by the median so the display scale cancels. Mirrors avatarProbe.ts `skinInit`/`skinSample`. */ export declare function skinSamples(rest: PreviewRest, poses: PreviewPose[], maxTris?: number): SkinSample[]; export declare function skinAssert(rest: PreviewRest | null, poses: PreviewPose[]): VisualQaAssert; /** What the GLB's materials emit, per drawn primitive (triangles from the accessors). Null when it is not a GLB. */ export declare function staticMaterialAudit(glb: Uint8Array): MaterialAudit | null; export declare function emissiveAssert(glb: Uint8Array): VisualQaAssert; /** All four offline stage-1 asserts. */ export declare function offlineAsserts(input: { rest: PreviewRest | null; walkPoses: PreviewPose[]; glb: Uint8Array; }): VisualQaAssert[];