/** * SVG cleanup and optimization utilities */ /** * Removes empty attributes from SVG elements */ export declare function removeEmptyAttributes(svgContent: Element | string): string; /** * Removes comments from SVG content * * This function uses iterative replacement to handle nested comments correctly * and includes input length validation to prevent ReDoS attacks. * * The function handles cases like: * - Simple comments: * - Nested comments: --> * - Multiple comments: */ export declare function removeComments(svgContent: string): string; /** * Normalizes whitespace in SVG content */ export declare function normalizeWhitespace(svgContent: string): string; /** * Optimizes SVG by removing empty attributes, comments, and normalizing whitespace */ export declare function optimizeSVG(svgContent: Element | string): string;