import { AttachNode } from '../../common'; /** * 获取元素某个 css 对应的值 * @param element 元素 * @param propName css 名 * @returns string */ export declare function getElmCssPropValue(element: HTMLElement, propName: string): string; /** * 判断元素是否处在 position fixed 中 * @param element 元素 * @returns boolean */ export declare function isFixed(element: HTMLElement): boolean; /** * 获取元素相对于另一个元素的位置(或者说相对于 body) * 感谢 `meouw`: http://stackoverflow.com/a/442474/375966 */ export declare function getRelativePosition(elm: HTMLElement, relativeElm?: HTMLElement): { top: number; left: number; }; export declare function getTargetElm(elm: AttachNode): HTMLElement; export declare function getScrollParent(element: HTMLElement): HTMLElement; export declare function scrollToParentVisibleArea(element: HTMLElement): void; export declare function scrollToElm(elm: HTMLElement): void;