UNPKG

@ark-ui/react

Version:

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

19 lines (18 loc) 614 B
import { Provider } from 'react'; export type RootNode = ShadowRoot | Document | Node; export interface UseEnvironmentContext { /** * The root node of the application. * This is used to determine the window and document objects. */ getRootNode(): RootNode; /** * The document context for the root node. */ getDocument(): Document; /** * The window context for the root node. */ getWindow(): Window & typeof globalThis; } export declare const EnvironmentContextProvider: Provider<UseEnvironmentContext>, useEnvironmentContext: () => UseEnvironmentContext;