/** * Auto-fix SVG assets to pass rig standardization checks where possible. */ import { type SvgViewBox } from './svgAssetAnalysis.js'; /** Checks the fixer can address (see FIXABLE_RIG_STANDARDIZATION_CHECKS for rig-level list). */ export declare const FIXABLE_SVG_ISSUES: readonly ["preserveAspectRatioNone", "pixelUnitsOnly", "viewBoxMatchesVisibleContent", "centeredTightViewBox", "hiddenPaths", "pathsOnly_embeddedImages", "pathsOnly_simpleRects", "pathsOnly_shapePrimitives", "pathsOnly_useElements", "pathsOnly_textElements", "pathsOnly_foreignObjectElements", "colorOutlineOnSameShape", "flattenGroupTransforms"]; export type FixableSvgIssue = typeof FIXABLE_SVG_ISSUES[number]; export interface SvgFixResult { svg: string; changed: boolean; fixes: string[]; unfixed: string[]; viewBoxBefore: SvgViewBox | null; viewBoxAfter: SvgViewBox | null; } export interface FixSvgAssetOptions { /** When true, skip viewBox tightening to preserve intentional padding (e.g. halfEyelid assets). */ skipViewBoxFit?: boolean; } /** Apply all automated SVG standardization fixes. */ export declare function fixSvgAsset(svgSource: string, options?: FixSvgAssetOptions): SvgFixResult; export declare function svgToDataUrl(svgSource: string): string; //# sourceMappingURL=svgAssetFix.d.ts.map