@stratakit/foundations
Version:
Foundational pieces of StrataKit
7 lines (6 loc) • 468 B
TypeScript
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>;