import type { ParseSelector } from './parser.js' declare global { interface ParentNode { querySelector(selector: S): ParseSelector | null querySelectorAll( selector: S, ): NodeListOf> } interface Element { closest(selector: S): ParseSelector | null } }