import { CompleteThemeSpec } from '@chsk/core'; import { SvgTransformConfig } from './types'; export declare const defaultSvgTransformConfig: SvgTransformConfig; /** * edit an Svg element * * Motivation: * * Svg element can contain 'spurious' content for several reason: * 1. Animation libraries add instructions into svg element style tags, * but some of the instructions / transforms are not needed for static images. * 2. Some style transforms are supported by browsers, but not by other viewers, e.g. inkscape. * 3. Coordinates may have too many decimal points. The high precision can be a * result of calculation or animation, but is not needed for static images. * * Cleaning the Svg element increases compatibility with viewers and reduces file size. * * Warning: * * This function modifies object 'element' * * @param element HTML element to clean * @param config object holding cleaning options * @param theme object with theme, if available then css definitions will be recomputed * @param content object summarizing svg components and styles (for internal use) */ export declare const transformSvg: (element: HTMLElement, config?: SvgTransformConfig, theme?: CompleteThemeSpec, content?: Record>) => HTMLElement; //# sourceMappingURL=transformSvg.d.ts.map