styled-components
Version:
CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.
11 lines (10 loc) • 552 B
TypeScript
import { InsertionTarget } from '../types';
import { Sheet } from './types';
/**
* Extract the container (Document or ShadowRoot) from an InsertionTarget.
* If the target is a ShadowRoot, return it directly.
* If the target is an HTMLElement, return its root node if it's a ShadowRoot, otherwise return document.
*/
export declare const getRehydrationContainer: (target?: InsertionTarget | undefined) => Document | ShadowRoot;
export declare const outputSheet: (sheet: Sheet) => string;
export declare const rehydrateSheet: (sheet: Sheet) => void;