import { SvgTransformConfig } from './types'; /** round a pixel dimensions to a fixed number of decimal places, e.g. '2px 2.1234px' -> '2 2.123' */ export declare const roundPxDecimalPlaces: (s: string, n: number, preservePx?: boolean) => string; /** convert an rgb(r g b) or rgb(r g b a) string into hex */ export declare const rgb2hex: (rgb: string | undefined) => string; export declare const cleanTransform: (x: string | undefined, n: number) => string | null | undefined; export declare const cleanStyle: (raw: string, n: number) => { style: string; transform: string | null | undefined; }; /** * scan an svg element to summarize components and class names * * @param element an html element * @param config configuration for svg cleaning, should have 'skipRoles' * @param content dictionary with components and class names, used internally to recursively traverse element */ export declare const scanSvg: (element: HTMLElement, config: SvgTransformConfig, content?: Record>) => Record>; /** * simplify a set of style definitions so that they contain only entries that are relevant in some content * * @param styles string with style definitions, lines separated by newlines * @param content dictionary with components and class names, used internally to recursively traverse element */ export declare const shakeStyles: (styles: string | null, content: Record>) => string; /** * process css lines to replace an existing ancestor with a new string */ export declare const changeAncestor: (styles: string | null, removeAncestor: boolean, addAncestor?: string | null) => string; //# sourceMappingURL=helpers.d.ts.map