24 lines
711 B
TypeScript
24 lines
711 B
TypeScript
import * as React from 'react';
|
|
export type MergeStylesShadowRootContextValue = {
|
|
/**
|
|
* Map of stylesheets available in the context.
|
|
*/
|
|
stylesheets: Map<string, CSSStyleSheet>;
|
|
/**
|
|
* Shadow root for this context.
|
|
*/
|
|
shadowRoot?: ShadowRoot | null;
|
|
};
|
|
export declare const MergeStylesShadowRootContext: React.Context<MergeStylesShadowRootContextValue | undefined>;
|
|
export type MergeStylesShadowRootProviderProps = {
|
|
children?: React.ReactNode;
|
|
/**
|
|
* Shadow root for this context.
|
|
*/
|
|
shadowRoot?: ShadowRoot | null;
|
|
};
|
|
/**
|
|
* Context for a shadow root.
|
|
*/
|
|
export declare const MergeStylesShadowRootProvider: React.FC<MergeStylesShadowRootProviderProps>;
|