UNPKG

@stratakit/foundations

Version:
7 lines (6 loc) 468 B
import * as React from "react"; export declare const RootNodeContext: React.Context<Document | ShadowRoot | null>; /** Returns the closest [rootNode](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode). */ export declare function useRootNode(): Document | ShadowRoot | null | undefined; export declare const spriteSheetId = "\uD83E\uDD5D-inline-sprites"; export declare const HtmlSanitizerContext: React.Context<((html: string) => string) | undefined>;