export const loadCSSAsStyle = (css) => {
    if (css.use) {
        css.use();
    }
    else {
        if (typeof window !== "undefined") {
            const style = document.createElement("style");
            style.textContent = css;
            document.head.appendChild(style);
        }
    }
};
export const unloadCSSAsStyle = (css) => {
    if (css.unuse) {
        css.unuse();
    }
};
//# sourceMappingURL=loadCSSAsStyle.js.map