import type { IWindow } from '../typings/common'; /** * 计算「指定元素」到指定的「定位的祖先元素」的距离 * https://developer.mozilla.org/zh-CN/docs/Web/API/HTMLElement/offsetParent * @param child 子元素 * @param ancestor 祖先元素 */ export declare function positionedOffset(child?: HTMLElement | null, ancestor?: HTMLElement | IWindow | null): { left: number; top: number; };