interface CalculateOptions { /** Margin to consider the element visible by default is 0 */ offset?: number; /** Flag indicating that if the viewport is below the element, then we consider the element visible, default false */ compliantScrollDown?: boolean; } /** Visible area */ export interface VisibleArea { /** Coordinates relative to the top left corner of the element from which it is visible */ top: number; /** Coordinates relative to the top left corner of the element from which it is visible */ left: number; /** Visible width of the element */ width: number; /** Visible height of the element */ height: number; } export declare function isVisible(element: HTMLElement, options?: CalculateOptions): boolean; export declare function getVisibleArea(element: HTMLElement, options?: CalculateOptions): VisibleArea; export {};