/** * 用于解决块级元素边距合并问题 * @param {HTMLElement} element */ export function getBlockTopAndHeightWithMargin(element: HTMLElement): { height: number; offsetTop: number; }; /** * document.elementsFromPoint polyfill * ref: https://github.com/JSmith01/elementsfrompoint-polyfill/blob/master/index.js * @deprecated 这个方法有问题,输入目标坐标如果介于两个子元素中间,则会返回最外层父元素 * @param {number} x * @param {number} y */ export function elementsFromPoint(x: number, y: number): any; export function getHTML(who: any, deep: any): string; /** * @template {keyof HTMLElementTagNameMap} K * @param {K} tagName 标签名 * @param {string} className 元素类名 * @param {Record} attributes 附加属性 * @returns {HTMLElementTagNameMap[K]} */ export function createElement(tagName: K, className?: string, attributes?: Record): HTMLElementTagNameMap[K]; export function loadScript(src: any, id: any): Promise; export function loadCSS(url: any, id: any): void;