import React, { Context, JSX, ReactElement, ReactNode } from 'react'; export declare const HiddenContext: Context; export declare function Hidden(props: { children: ReactNode; }): JSX.Element; /** Creates a component that forwards its ref and returns null if it is in a hidden subtree. */ export declare function createHideableComponent(fn: (props: P, ref: React.Ref) => ReactElement | null): (props: P & React.RefAttributes) => ReactElement | null; /** Returns whether the component is in a hidden subtree. */ export declare function useIsHidden(): boolean;