import type { Vec3 } from './vehicleMath'; export declare const CABIN_FIT_THRESHOLDS: { /** A seat the runtime moved further than this from its authored H-point (any direction) fails. */ readonly maxMoveM: 0.03; }; export interface SeatFitReport { id: string; accepted: boolean; reason: string | null; movedAft: number; lowered: number; headroom: number | null; crownClearance: number | null; occupantMeasured: boolean; } /** One pedal as the runtime's fit left it. `raised` is the long-standing field; the rest are the footwell numbers (engine >= the seat-foot fit; absent on older runtimes). */ export interface PedalFitReport { id: string; raised: number; /** Pad (sole target) and hinge (pivot), root-local metres. */ pad?: [number, number, number]; hinge?: [number, number, number]; /** How far the fit pulled this pedal back toward the driver, metres. 0 for a pedal the car declares. */ pulledM?: number; /** Hip-to-pad distance with the pedal at rest and fully pressed, metres (the leg reaches 0.95 / 0.98). */ restReach?: number; pressedReach?: number; /** The thigh's rise over horizontal with the foot on this pedal, degrees. */ thighDeg?: number; /** Per part (shin, calf, ankle, ball, toe): metres of room between it and the cabin ahead; negative = into it. */ clearance?: Record; } export interface CabinFitReportLike { measured?: boolean; seats?: SeatFitReport[]; steering?: { movedAft: number; lowered: number; radiusBefore: number; radiusAfter: number; worstClearance: number | null; fullLockReachable?: boolean; } | null; pedals?: PedalFitReport[]; driverFit?: { status: string; reason: string | null; }; warnings?: string[]; } /** What the occupant route records per seat (vehicleOccupants `facts.seats[]`). */ export interface OccupantSeatFacts { key: string; seatId: string | null; role: string | null; cabinFit?: CabinFitReportLike | null; seatFit?: { node: Vec3 | null; cabin: Vec3 | null; } | null; } export interface CabinFitRow { key: string; seatId: string | null; role: string | null; status: 'PASS' | 'FAIL' | 'NOT_MEASURED'; /** The H-point as authored (the package's seat socket, in the drawn body frame): the runtime position with the fit's moves undone. */ authoredHPoint: Vec3 | null; /** Where the runtime seats the occupant's hip after its cabin fit, body frame. */ runtimeHPoint: Vec3 | null; /** runtime − authored, metres (x right-left, y up, z forward). */ deltaM: Vec3 | null; moveM: number | null; movedAftM: number | null; loweredM: number | null; headroomM: number | null; crownClearanceM: number | null; accepted: boolean | null; reason: string | null; /** Declare this H-point (seat node) if the runtime position is the intended one; otherwise reshape the cabin. */ declareHPoint: Vec3 | null; detail: string; } export declare function judgeCabinFit(seats: OccupantSeatFacts[], t?: { /** A seat the runtime moved further than this from its authored H-point (any direction) fails. */ readonly maxMoveM: 0.03; }): { pass: boolean; rows: CabinFitRow[]; detail: string; report: CabinFitReportLike | null; };