import { CSSResult } from 'lit'; import { VER_SUFFIX } from '../scoping'; declare global { var __gdsGlobalStylesRegistryScoped: { [VER_SUFFIX]: GlobalStylesRegistry; }; } /** * GlobalStylesRegistry is a singleton class that manages global stylesheets in the document. * The singleton is used to inject global styles that are not scoped to specific components. */ export declare class GlobalStylesRegistry { #private; /** * Get the global singleton instance of the GlobalStylesRegistry. */ static get instance(): GlobalStylesRegistry; /** * Injects global styles into the document. This function is intended to be used for global styles * that cannot be scoped to a specific component. * * @param key unique identifier for this stylesheet. * @param styles CSSResult produced by the lit css template literal tag */ injectGlobalStyles(key: string, styles: CSSResult): void; /** * Clears global styles for the given key. * * @param key unique identifier for the stylesheet to be removed. */ clearGlobalStyles(key: string): void; }