import type { RenderRoute } from './harness'; /** The two base bodies an emote is judged on (the platform's canonical humanoids). */ export declare const BASE_MALE_ID = "b45e4a1e-0000-4000-8000-000000000001"; export declare const BASE_FEMALE_ID = "bcafa7e1-9487-422d-8c08-e152b81f1f45"; /** The clip must drive at least this share of the bones it names, and at least this many nodes. */ export declare const MIN_BOUND_SHARE = 0.5; export declare const MIN_BOUND_TRACKS = 6; /** Some drawn vertex must travel at least this far (× avatar height) between two sampled times, or the clip is a still. */ export declare const MIN_MOTION_RATIO = 0.03; /** A held pose (sit / lie down): the body is at least this far from its bind pose and still moves at least this much (× height). */ export declare const HELD_POSE_MIN_RATIO = 0.15; export declare const HELD_POSE_MIN_MOTION_RATIO = 0.002; /** A sampled pose is "still in the bind pose" when its p90 bone rotation is under this many degrees. */ export declare const BIND_POSE_P90_DEG = 6; /** At most this many of the 5 frame poses may sit in the bind pose (a T-pose start or end is fine; a T-pose clip is not). */ export declare const MAX_BIND_POSE_FRAMES = 2; /** Drawn bounds must stay within [min, max] × the bind-pose height in every dimension, and no vertex may stray further. */ export declare const MAX_EXTENT_RATIO = 2.1; export declare const MIN_EXTENT_RATIO = 0.18; export declare const MAX_STRAY_RATIO = 1.6; /** The lowest drawn vertex must stay within [-DOWN, +UP] × height of its bind-pose height (feet leave the floor for a jump, never a flight). */ export declare const GROUND_DOWN_RATIO = 0.3; export declare const GROUND_UP_RATIO = 0.6; /** The body's centre may not travel further than this (× height) horizontally. */ export declare const MAX_DRIFT_RATIO = 1.6; export interface ClipSummary { name: string; duration: number; channels: number; targets: string[]; } export interface ClipObject { role: string; cid: string; bytes: number; sha256Verified: boolean; clips: ClipSummary[]; } export interface ClipInfo { clips: ClipSummary[]; /** The clip played on the viewer's body (the longest clip of the primary object). */ primary: ClipSummary; /** The joiner's clip of a two-person emote, played on a second body. */ partner: ClipSummary | null; /** Every clip object the package pins (primary, partner, intro, outro) with its hash verified against its CID. */ objects: ClipObject[]; /** CID hex of the primary clip object (the one the page must fetch). */ primaryHex: string; partnerHex: string | null; /** How the package pins its clips: a bare glTF root, or an animation-definition (helix.interactive) naming clip objects. */ shape: 'gltf-root' | 'animation-definition'; definition: Record | null; bytes: number; } /** The animation clips (name, duration, channel count, target node names) of a binary glTF, from its JSON chunk alone. */ export declare function animationClipsOf(buf: Buffer): ClipInfo['clips']; export declare const renderAnimation: RenderRoute;