/** * https://stackoverflow.com/a/442474/10977967 * Doesn't work when scrollTop was altered */ declare function getOffset(el: HTMLElement): { top: number; left: number; }; /** * Gets the computed CSS property value of the given element. */ declare function getCssStyle(el: HTMLElement, prop: string): string; /** * Gets the CSS font descriptor (e.g. "bold 14px verdana") of the given element. */ declare function getCssFont(el?: HTMLElement): string; declare function getPositionAmongSiblings(el: HTMLElement): number; declare function elCreate(tagName: string, attrs?: object, innerHTML?: string): HTMLElement; declare function isOverflown(el: HTMLElement, heightTolerance?: number, widthTolerance?: number): boolean; declare function isScrollableY(el: HTMLElement): boolean; declare function isScrollableX(el: HTMLElement): boolean; declare function isScrollableXY(el: HTMLElement): boolean; declare function htmlToElements(html: string, elNodesOnly?: boolean): HTMLCollection | NodeList; /** * @param nodes - HTML strings or node/s * @param referenceEl - querySelector or HTML element */ declare function insertNodes(nodes: string | Node[] | Node, referenceEl: HTMLElement | string, after?: boolean): void; declare function switchElements(el1: HTMLElement, el2: HTMLElement): void; export { elCreate, getCssFont, getCssStyle, getOffset, getPositionAmongSiblings, htmlToElements, insertNodes, isOverflown, isScrollableX, isScrollableXY, isScrollableY, switchElements };