import { ReactNode, FC } from 'react'; type NodeRef = Element | null; interface VisibilityProps { /** * children must be a function waiting for a ref callback * to give to the children element */ children(ref: (node: NodeRef) => void): ReactNode; } declare const Visibility: FC; export default Visibility;