import { RefObject } from 'react';
/**
 * Call `callAction` with the `actions.recordVisibilityChange`
 * when any portion of the element referenced by `ref`
 * is visible or stops being visible in the browser's viewport.
 *
 * If `skipRecording` is false, then don't do anything.
 */
export declare function useRecordVisibilityChanges(ref: RefObject<HTMLElement | null>, callAction: (argObj: Record<string, any>) => void, actions: any, skipRecording?: boolean): void;
/**
 * Returns true if the element referenced by `ref` is anywhere on the page
 * (more precisely, within 1000000px of the browser's viewport).
 *
 * Used to approximately detect if the element is not hidden.
 */
export declare function useIsOnPage(ref: RefObject<HTMLElement | null>): boolean;
//# sourceMappingURL=visibility.d.ts.map