13 lines
718 B
TypeScript
13 lines
718 B
TypeScript
import type { ExtendedCSSStyleSheet } from '@fluentui/merge-styles';
|
|
import type { MergeStylesShadowRootContextValue } from '../contexts/MergeStylesShadowRootContext';
|
|
export type AdoptedStylesheetHook = (stylesheetKey: string) => boolean;
|
|
export type AdoptedStylesheetExHook = (stylesheetKey: string, shadowCtx: MergeStylesShadowRootContextValue | undefined, rootMergeStyles: Map<string, ExtendedCSSStyleSheet>, win: Window | undefined) => boolean;
|
|
/**
|
|
* Use adopted stylesheets in the parent shadow root.
|
|
*/
|
|
export declare const useAdoptedStylesheet: AdoptedStylesheetHook;
|
|
/**
|
|
* Optimization for specific cases like nested customizables.
|
|
*/
|
|
export declare const useAdoptedStylesheetEx: AdoptedStylesheetExHook;
|