/** * Copies the attributes of a DOM element including non-readonly style * attributes. * * This does not copy read-only properties * * @param { HTMLElement } elem DOM element * @returns { Record } elem */ export default function copyAttributes(elem: N | null | undefined): Record | undefined;