import { RefObject } from 'react'; /** * Fires a single `widgetObserved` event when the widget has been ENTIRELY * visible in the viewport for at least 1 second continuously. * * The timer resets whenever any part of the widget leaves the viewport. * * @param widgetRef - Ref attached to the widget root element. */ export default function useWidgetObserved(widgetRef: RefObject): void;