/** * @name injectStyle * @namespace js.dom.inject * @type Function * @platform js * @status stable * * Inject a passed style string in the DOM * * @param {String} style The style to inject in DOM * @param {Partial} [settings=null] Some settings to configure your injection * @return {HTMLStyleElement} The injected HTMLStyleElement node * * @setting {String} id An id for the injected style tag * @setting {HTMLElement} [rootNode=undefined] A node in which to inject the style * * @snippet __injectStyle($1) * * @todo tests * * @example js * import { __injectStyle } from '@lotsof/sugar/dom'; *  __injectStyle('a { color: red; }'); * * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export type TInjectStyleSettings = { id: string; rootNode: HTMLElement; }; export default function __injectStyle(style: any, settings?: Partial): HTMLStyleElement | undefined;