/** * Fix rig JSON assets that fail auto-fixable standardization checks. */ import { type PartStandardizationDetail, type RigStandardizationResult } from './characterValidator.js'; /** Rig standardization checks we can auto-fix in SVG assets. */ export declare const FIXABLE_RIG_STANDARDIZATION_CHECKS: readonly ["preserveAspectRatioNone", "pixelUnitsOnly", "viewBoxMatchesVisibleContent", "centeredTightViewBox", "pathsOnly (inline , strip /, remove embedded images + hidden paths)", "colorOutlineOnSameShape (twin fill/stroke paths)", "hiddenPaths (warning only — removed)", "flattenGroupTransforms (bake into path coordinates)"]; /** Checks we validate but cannot auto-fix with code. */ export declare const UNFIXABLE_RIG_STANDARDIZATION_CHECKS: readonly ["uniformAssetFormat — cannot convert PNG/raster parts to SVG", "totalVerticesUnder400 — requires manual path simplification", "pathsOnly — embedded raster images or hidden paths that resist auto-removal; unreplaceable //", "colorOutlineOnSameShape — non-twin-path splits need manual merge"]; /** Structural schema issues (validateCharacter) — not addressed by this fixer. */ export declare const UNFIXABLE_STRUCTURAL_CHECKS: readonly ["missing body part images / hashes", "missing or invalid pivot points", "missing z-index values or ordering", "missing eye/mouth fields and coordinates", "missing dimensionValues"]; export interface AssetFixRecord { assetRef: string; partKeys: string[]; format: 'svg' | 'raster' | 'skipped'; changed: boolean; fixes: string[]; unfixed: string[]; beforeCompliant: boolean; afterCompliant: boolean; fixedSvg?: string; } export interface RigFixResult { rig: Record; dryRun: boolean; assetsProcessed: number; assetsChanged: number; assetFixes: AssetFixRecord[]; before: RigStandardizationResult; after: RigStandardizationResult; remainingUnfixed: string[]; } export interface FixRigOptions { baseHost?: string; includePartSwapImages?: boolean; dryRun?: boolean; } /** Fetch SVG assets, apply fixes, and return an updated rig object. */ export declare function fixRigAssets(data: unknown, options?: FixRigOptions): Promise; export declare function partIsCompliant(part: PartStandardizationDetail): boolean; //# sourceMappingURL=rigAssetFix.d.ts.map