import { ReactNode, ElementType } from 'react'; import { ReloadOptions } from './types'; interface WhenVisibleProps { children: ReactNode; data?: string | string[]; params?: ReloadOptions; buffer?: number; as?: ElementType; always?: boolean; fallback?: ReactNode; } declare const WhenVisible: { ({ children, data, params, buffer, as, always, fallback }: WhenVisibleProps): string | number | bigint | boolean | Iterable | Promise> | Iterable> | import('react').ReactElement>; displayName: string; }; export default WhenVisible;