import { type EarClearanceOptions, type EarClearanceReport } from './stages/earClearance'; import { type PoseAwareFitOptions, type PoseAwareFitReport } from './stages/poseAwareFit'; import { type SeatWaistClearanceReport } from './stages/seatWaistClearance'; /** * File-level entry point for the pose-aware fit stage used by `helix character fit` * on an already-packaged add-on GLB (every LOD level). * * Output contract, so a batch driver never has to guess: * - outcome 'improved': `output` holds the fitted GLB (only POSITION data differs from the input). * - any other outcome: `output` is a BYTE-IDENTICAL copy of the input — the gate kept the original. * * Head-zone slots (headwear, mask, hair, eyewear) get a second stage after the pose-aware fit: ear clearance * (`stages/earClearance.ts`) — the pose-aware fit cannot work on a thin head shell, and the ears poking through * it is what the visual-QA gate fails them for. It runs automatically for those slot types, or on demand with * `earClearance: true`; `earClearance: false` turns it off. `fitted` is true when EITHER stage improved the mesh. */ export interface FitGarmentFileOptions extends Omit { garment: string; body: string; output: string; /** Region scope. Exactly one of `slotType` / `hiddenRegions` should be given; `hiddenRegions: []` is an * explicit, deliberate unscoped fit. */ slotType?: string; hiddenRegions?: readonly string[]; /** Also write the report JSON here. */ reportPath?: string; /** Ear-clearance stage: undefined = on for head-zone slot types only; true = always; false = never. */ earClearance?: boolean; earClearanceOptions?: EarClearanceOptions; } export interface FitGarmentFileResult { report: PoseAwareFitReport; /** The ear-clearance stage's report; null when the stage did not run. */ ears: EarClearanceReport | null; output: string; /** True when `output` is the fitted geometry; false when it is a byte-identical copy of the input. */ fitted: boolean; } export declare function resolveFitScope(slotType: string | undefined, hiddenRegions: readonly string[] | undefined): string[]; export declare function fitGarmentFile(opts: FitGarmentFileOptions): Promise; /** File-level `helix character seat-clearance`: lift a packaged add-on GLB off the hip skin of its base body (every LOD). */ export declare function seatClearanceFile(opts: { garment: string; body: string; output: string; offsetMm?: number; fadeMm?: number; onProgress?: (m: string) => void; }): Promise;