import { Style, XCSSInjector } from './css-injector.types'; /** * Custom CSS injector that allows to inject styles into a host element. * * @public */ export declare class CssInjector implements XCSSInjector { protected hosts: Set; protected stylesToAdopt: CSSStyleSheet[]; /** * Initializes the instance of the injector if it's not already initialized and sets it in the * window object if it's required. * * @param setInWindow - Whether to set the injector instance in the window object. */ constructor(setInWindow?: boolean); /** * Adds the style to the host element. * * @param style - The styles to be added. * @param style.source - Styles source. */ addStyle(style: Style): void; /** * Sets the host element. Alias of addHost method. * * @param host - The host element. * @deprecated Use addHost instead. */ setHost(host: Element | ShadowRoot): void; /** * Adds the element to the hosts set. * * @param host - The host element. */ addHost(host: Document | ShadowRoot): void; /** * Removes the element from the hosts set. * * @param host - The host element to remove. */ removeHost(host: Document | ShadowRoot): void; /** * Sets the injector instance in the window object. */ setInWindow(): void; /** * Checks if the injector instance is in the window object. * * @returns Whether the injector instance is in the window object. */ isInWindow(): boolean; } /** * Instance of the injector. * * @public */ export declare const cssInjector: CssInjector;