/** * Sets the `attribute` of an `element` to the specified `value` _if_ the element's attribute * did not already have that value. Used to avoid redundantly triggering `MutationObserver`s. * * @param {HTMLElement} element * @param {string} attribute * @param {string} value * @returns {void} */ export function setAttributeFor(element: HTMLElement, attribute: string, value: string): void; /** * Checks if the provided `element` contains **_either_** end of the page's current {@link Selection}. * This check can pass even if the page's Selection is {@link Selection.isCollapsed collapsed}. * Supports Shadow DOMs only where {@link Selection.getComposedRanges} is supported. * * **NOTE**: If the page's Selection resides _outside_ the provided `element` (e.g., the selection starts _before_ the * `element` and ends _after_ the `element`), this check will return `false` (since the selection does not * reside _within_ the `element`). * @param {HTMLElement} element * @returns {boolean} */ export function selectionIsWithin(element: HTMLElement): boolean; //# sourceMappingURL=dom.d.ts.map