declare type ScrollElement = HTMLElement | Window; interface Margin { marginTop?: number; marginRight?: number; marginBottom?: number; marginLeft?: number; } export declare function isFixed(element: HTMLElement): boolean; export declare function getRect(element: HTMLElement): ClientRect; export declare function getRect(element: Window): { width: number; height: number; }; export declare function getScroll(element?: ScrollElement): { top: number; left: number; }; export declare function getPagePosition(element: HTMLElement): { top: number; bottom: number; left: number; right: number; }; export declare function isXVisible(element: HTMLElement, margin?: Margin): boolean; export declare function isYVisible(element: HTMLElement, margin?: Margin): boolean; export declare function isVisible(element: HTMLElement, margin?: Margin): boolean; export declare function findNearestElement(element: HTMLElement, targetTagName: keyof HTMLElementTagNameMap): HTMLElement | null; export {};