export const DOM_OBJECTS: ReadonlySet = new Set(["DOMFactory", "domLab", "DOMSelectors", "StyleManager"]); export const DOM_DOCUMENT_METHODS: ReadonlySet = new Set([ "createElement", "createElementNS", "querySelector", "querySelectorAll", "getElementById", "getElementsByClassName", "getElementsByTagName", ]); export const DOM_MUTATION_METHODS: ReadonlySet = new Set([ "appendChild", "removeChild", "insertBefore", "replaceChild", "replaceChildren", "append", "prepend", "remove", "insertAdjacentElement", "insertAdjacentHTML", ]); export const DOM_PROPERTIES: ReadonlySet = new Set([ "innerHTML", "textContent", "innerText", "outerHTML", "classList", ]); export const API_METHODS: ReadonlySet = new Set(["get", "post", "put", "delete", "patch"]); export const API_GLOBALS: ReadonlySet = new Set(["fetch", "XMLHttpRequest"]); export const STORAGE_OBJECTS: ReadonlySet = new Set(["localStorage", "sessionStorage", "indexedDB"]); export const EVENT_METHODS: ReadonlySet = new Set(["addEventListener", "removeEventListener"]); export const EVENT_OBJECTS: ReadonlySet = new Set(["EventManager", "GestureManager", "HapticManager"]); export const TIMER_GLOBALS: ReadonlySet = new Set([ "setTimeout", "setInterval", "requestAnimationFrame", "cancelAnimationFrame", ]); export const DOMAIN_LABELS: Readonly> = { api: "API/network calls", dom: "DOM manipulation", events: "event binding", storage: "storage operations", timer: "timer/animation scheduling", };