/** * @typedef AddClassesToSVGElementParams * @property {string | ((node: import('../lib/types.js').XastElement, info: import('../lib/types.js').PluginInfo) => string)=} className * @property {Array string)>=} classNames */ export const name: "addClassesToSVGElement"; export const description: "adds classnames to an outer element"; /** * Add classnames to an outer element. Example config: * * plugins: [ * { * name: "addClassesToSVGElement", * params: { * className: "mySvg" * } * } * ] * * plugins: [ * { * name: "addClassesToSVGElement", * params: { * classNames: ["mySvg", "size-big"] * } * } * ] * * @author April Arcus * * @type {import('../lib/types.js').Plugin} */ export const fn: import("../lib/types.js").Plugin; export type AddClassesToSVGElementParams = { className?: (string | ((node: import("../lib/types.js").XastElement, info: import("../lib/types.js").PluginInfo) => string)) | undefined; classNames?: Array string)> | undefined; };