type IPos = { x: number; y: number; }; /** * 获取元素(el)距离文档(document.documentElement || document.body)的距离。 * @param el 待处理的 HTML 元素。 * @returns {IPos} 返回元素el,距离左上角的x,y值。 * @see {@link https://hyhello.github.io/utils/#/offset 在线文档} */ export default function offset(el: HTMLElement): IPos; export {};