/** Parses the `viewBox` attribute from an SVG string. Returns `null` when absent. */ export declare function getViewBox(svg: string): { x: number; y: number; w: number; h: number; } | null; /** Reads a `width` or `height` attribute value from the root `` element. */ export declare function getSvgDimension(svg: string, attr: 'width' | 'height'): number | null; /** Replaces (or inserts) the `viewBox` attribute in an SVG string. */ export declare function setViewBox(svg: string, x: number, y: number, w: number, h: number): string; /** * Crops an SVG string to its content bounding box using the browser DOM. * Temporarily attaches the element to the document to measure `getBBox()`. * `padding` adds extra space around the content in SVG user units. */ export declare function cropSvg(svgString: string, padding?: number): Promise; //# sourceMappingURL=svg.d.ts.map