import type { ComponentType, PropsWithoutRef } from 'react'; import hoistNonReactStatic from 'hoist-non-react-statics'; import type { CallbackProps, Config, InjectedViewportProps, Options } from './types'; /** * Note: `config` is captured when the component is wrapped, so `config.enabled` * is fixed for the life of the component. It is still read — `{ enabled: false }` * here turns observation off permanently — but it cannot be toggled, and pausing * is a runtime decision. Use the `useInViewport` hook directly for that. */ declare function handleViewport>(TargetComponent: ComponentType>, options?: Options, config?: Config): { ({ onEnterViewport, onLeaveViewport, ...restProps }: Omit> & CallbackProps): import("react/jsx-runtime").JSX.Element; displayName: string; } & hoistNonReactStatic.NonReactStatics & import("react").RefAttributes>, {}>; export default handleViewport;