/** * SVG → PNG rasterisation through resvg (Node only). * @module render/png */ export type PngOptions = { /** * Output width in pixels (clamped to the configured limits). */ width?: number; /** * Scale factor relative to the SVG size when `width` is not set (default 2). */ scale?: number; /** * Background colour. */ background?: string; }; /** * @typedef {object} PngOptions * @property {number} [width] Output width in pixels (clamped to the configured limits). * @property {number} [scale] Scale factor relative to the SVG size when `width` is not set (default 2). * @property {string} [background] Background colour. */ /** * Rasterise an SVG string. * @param {string} svg * @param {PngOptions & { limits?: import("../core/limits.mjs").Limits }} [options] * @returns {Buffer} * @public */ export declare function svgToPng(svg: string, options?: PngOptions & { limits?: import("../core/limits.mjs").Limits; }): Buffer;