import { default as React } from 'react'; export interface VisibilityHandle { isVisible: () => boolean; whenVisible: Promise; destroy: () => void; } export type RegisterViewportFn = (el: HTMLElement, opts?: { rootMargin?: string; threshold?: number; }) => VisibilityHandle; export interface ViewportPriorityProviderProps { getRoot: () => HTMLElement | null; enabled?: boolean; children: React.ReactNode; } export declare function ViewportPriorityProvider({ getRoot, enabled, children }: ViewportPriorityProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useViewportPriority(): RegisterViewportFn;