//#region src/constants/htmlElements.d.ts declare const selfClosingTags: ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "source", "track", "wbr"]; /** * Set of HTML elements that are self-closing (void elements) * These elements cannot have children and don't need closing tags */ declare const SELF_CLOSING_TAGS: Set<"area" | "base" | "br" | "col" | "embed" | "hr" | "img" | "input" | "link" | "meta" | "source" | "track" | "wbr">; /** * Check if an element is self-closing */ declare function isSelfClosingTag(tag: keyof HTMLElementTagNameMap): boolean; /** * Type for all valid HTML element names */ type HTMLElementName = keyof HTMLElementTagNameMap; /** * Type for self-closing HTML elements */ type SelfClosingElement = (typeof selfClosingTags)[number]; //#endregion export { HTMLElementName, SELF_CLOSING_TAGS, SelfClosingElement, isSelfClosingTag };