/** * Renders attributes to the given element based on the `attrInfo` object where * boolean values are added/removed as attributes. * @param {*} element Element on which to set attributes. * @param {*} attrMap Object describing attributes. */ export declare function renderAttributes(element: HTMLElement, attrMap: { [key: string]: string | boolean | number; }): void; /** * Traverses the roots and returns the first match. * @param $elem * @param query */ export declare function queryParentRoots($elem: Element, query: string): T[]; /** * Traverses the tree of active elements down the shadow tree. * @param activeElement */ export declare function traverseActiveElements(activeElement?: Element | null): Element | null; /** * Returns the assigned elements to the first matching slot of the shadow root. * @param root */ export declare function getSlottedElements(root: ShadowRoot): Element[]; /** * Remove all children from a container. * @param $container */ export declare function removeChildren($container: HTMLElement): void; /** * Sanitizes dangerous HTML. * @param html */ export declare function sanitize(html: string): string; /** * Determines whether the element is hidden in the DOM. * https://stackoverflow.com/questions/19669786/check-if-element-is-visible-in-dom * @param $elem * @param style */ export declare function isHidden($elem: HTMLElement, style?: CSSStyleDeclaration): boolean; /** * Sets a css property on an element. * @param name * @param value * @param $target */ export declare function setProperty(name: string, value: string, $target?: HTMLElement): void; /** * Removes a css property on an element. * @param name * @param $target */ export declare function removeProperty(name: string, $target?: HTMLElement): void;