export type TGetIndexOfElArgs = Parameters; export type TGetIndexOfElReturn = ReturnType; /** * Gets index of Node from relatively its siblings * @param el{HTMLElement|Node|Element|Document} DOM element * @returns {number} * @throws {TypeError} getIndexOfEl: el must be a Node/Element * @example * // * getIndexOfEl(document.querySelector("#c")!) // 2 * @example * // Find the index of a clicked tab among its element siblings * tabs.addEventListener("click", (event) => { * if (event.target instanceof Element) selectTab(getIndexOfEl(event.target)); * }); */ export declare const getIndexOfEl: (el: HTMLElement | Node | Element | Document) => number;