/** * @param {ChildNode} ref * @param {string | number | Node | Node[] | NodeList | HTMLCollection} [criteria] * @param {string | number | Node | Node[] | NodeList | HTMLCollection} [stop=document.body] * @returns {ParentNode} closest matching element */ export default function closest(ref: ChildNode, criteria?: string | number | Node | Node[] | NodeList | HTMLCollection, stop?: string | number | Node | Node[] | NodeList | HTMLCollection): ParentNode;