Files
starface-outlook-sync-addin/node_modules/@fluentui/utilities/lib-amd/shadowDom/hooks/useAdoptedStylesheet.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

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;