import type { Vec3 } from '../../visualQa/vehicleMath'; import type { MotionId } from './types'; export type ViewName = 'front' | 'front34' | 'left' | 'right' | 'back34' | 'back' | 'front34r' | 'back34l'; export declare const VIEW_DIRS: Record; export declare const VIEW_LABEL: Record; /** A body region a close-up is fitted to: vertices weighted >= 0.5 on a matching bone. */ export type RegionName = 'head' | 'hands' | 'feet'; export declare const REGION_BONES: Record; /** Which phase of the cycle a frame is held at. `left`/`right` = that arm swung furthest back; `mid` = a quarter cycle on (arms level, legs passing). */ export type PhaseName = 'left' | 'right' | 'mid' | 'zero'; export declare const PHASE_LABEL: Record; /** Short forms for tile captions. */ export declare const VIEW_SHORT: Record; export declare const PHASE_SHORT: Record; export interface TileRequest { /** Stable id, also the cache key of the control tile: `...`. */ id: string; motion: MotionId; view: ViewName; phase: PhaseName; region?: RegionName; } export declare const tileId: (motion: MotionId, view: ViewName, phase: PhaseName, region?: RegionName) => string; export declare const tile: (motion: MotionId, view: ViewName, phase: PhaseName, region?: RegionName) => TileRequest; export interface SheetPlan { id: string; title: string; look: string; perRow: number; portrait?: boolean; tiles: TileRequest[]; } /** Every sheet, in the order they are to be read. Sheet ids are stable. */ export declare const SHEETS: SheetPlan[]; /** Every distinct tile request across all sheets (a tile used by two sheets is rendered once). */ export declare function allTiles(sheets?: SheetPlan[]): TileRequest[]; /** * Which phase INDEX (0..15) of a motion's cycle each named phase is. Walk: the arm back-swing phases are measured on the avatar's * own posed hands (avatarPreviewMath.backswingPhases), as the gate does, and mid-stride is a quarter cycle after the left * back-swing. Run: a bent-arm swing has no clean "hand furthest behind" for the right arm, so the phases are the left back-swing, * half a cycle on, and the quarter between. Idle: held at its first sample. */ export declare function phaseIndices(backswing: { left: number | null; right: number | null; }, phases: number, motion?: MotionId): Record;