UNPKG

spacesvr-websessions

Version:

A standardized reality for future of the 3D Web

18 lines (17 loc) 530 B
import { ReactElement, ReactNode } from "react"; declare type Pass = { uuid: string; node: ReactElement; index: number; }; declare type VisualState = { registerPass: (p: Pass) => void; unregisterPass: (uuid: string) => void; }; export declare const VisualContext: import("react").Context<VisualState>; export declare const useVisual: () => VisualState; declare type VisualLayerProps = { children: ReactNode[] | ReactNode; }; export declare function Visual(props: VisualLayerProps): JSX.Element; export {};