import type { StyleSheet } from "@knyt/tailor"; /** * Options for the GlobalStyleSheetController. * * @alpha This is an experimental API. It will change in future versions. */ type GlobalStyleSheetControllerOptions = { /** * The document to use for rendering. * If not provided, the current document will be used. * * @remarks * * This is useful for containing the rendered elements in a specific document, * such as when server-side rendering. */ document?: Document; }; /** * This controller should be added before the host is connected. * * @alpha This is an experimental API. It will change in future versions. */ declare class GlobalStyleSheetController { #private; constructor(styleSheet: StyleSheet, options?: GlobalStyleSheetControllerOptions); injectStyleSheet(): Promise; removeStyleSheet(): void; hostConnected(): void; hostDisconnected(): void; } /** * @alpha This is an experimental API. It will change in future versions. */ export declare function createGlobalStyleSheetController(styleSheet: StyleSheet, options?: GlobalStyleSheetControllerOptions): GlobalStyleSheetController; export {}; //# sourceMappingURL=GlobalStyleSheetController.d.ts.map