import type { MutableRefObject } from 'react'; export interface UseStyleTagReturns { /** * Unique identifier of the style tag */ id: string; /** * CSS content */ css: string; /** * Set CSS content */ setCss: (newCss: string) => void; /** * Reset CSS content to initial value */ resetCss(): void; /** * Load the style tag */ load(): void; /** * Unload the style tag */ unload(): void; /** * A ref that holds the style tag element */ styleTag: MutableRefObject; /** * A ref that holds the loading state of the style tag */ isLoaded: MutableRefObject; } export interface UseStyleTagOptions { /** * Media query for styles to apply */ media?: string; /** * Whether to load the style tag immediately * * @defaultValue true */ immediate?: boolean; /** * Whether to manually control the tag, if not, it will automatically unload * * @defaultValue false */ manual?: boolean; /** * Unique identifier of the style tag * * @defaultValue auto-incremented */ id?: string; } /** * A React Hook that helps to apply a style tag to the document with ease in React. */ export declare function useStyleTag(initialCss?: string, options?: UseStyleTagOptions): UseStyleTagReturns;