/** * True while this page is visible and its window has focus. A page left open * in a background tab, behind another window, or (in an iframe) while focus is * elsewhere is not in the foreground. */ export declare function useDocumentForeground(): boolean; /** * True while the resolved element is rendered and intersects the viewport. An * element that a host hides (`display: none`, a collapsed panel, a closed * drawer moved off screen) or that is not rendered at all is not on screen. * `resolve` runs again whenever `refreshKey` changes (for example when the * element may have been replaced). */ export declare function useElementOnScreen(resolve: () => Element | null, refreshKey: unknown): boolean;