/** * Change tag of an HTML Element to a new one, and replace it from DOM tree * @param element The element to change tag * @param newTag New tag to change to * @returns The new element with new tag */ export default function changeElementTag(element: HTMLElement, newTag: K): HTMLElementTagNameMap[K]; /** * Change tag of an HTML Element to a new one, and replace it from DOM tree * @param element The element to change tag * @param newTag New tag to change to * @returns The new element with new tag */ export default function changeElementTag(element: HTMLElement, newTag: string): HTMLElement | null;