import * as React from 'react'; import { StoreComponent } from '../services/store'; type NodeRef = Element | null; interface Props { /** * children must be a function waiting for a ref callback * to give to the children element */ children(ref: (node: NodeRef) => void): React.ReactNode; } /** * Observe visibility of a children component */ export declare class Visibility extends StoreComponent { private observer?; private eventTimeout; private triggered; private childrenRef?; render(): React.ReactNode; componentWillUnmount(): void; /** * Triggered each times the ref changes * @param ref Ref to the children */ private onChildrenRef; private handleIntersection; private visibilityChange; } export {};