/**
 * Enhanced lazy CSS loader that wraps CSS in a layer using fetch to avoid CORS issues
 * @param {string} href - URL of the CSS file to load
 * @param {string} before - CSS selector to insert before
 * @param {object} options - Additional options
 * @param {string} options.layer - Optional CSS layer name to wrap the CSS in
 * @returns {() => void} cleanup function
 */
export default function useLazyCSS(href: string, before: string, options?: {
  layer?: string;
}): void;