import { Nullable } from '../../types/general'; /** * This class is used to track the nested level of a component * by using the target element and tracking element selector * * @property {Map} map used to record the nesting level */ declare class ComponentNestedLevelTracker { private map; /** * If the element matches the selector, then set the level of the element to the level of the parent element + 1 * * @param {HTMLElement} el - HTMLElement * @param {string} selector - The selector of the card that is being nested. * @returns {Nullable} The nested level of the element. */ setNestedLevel(el: HTMLElement, selector: string): Nullable; /** * Given an element and a selector, return the nested level of that selector * * @param {HTMLElement} el - HTMLElement * @param {string} selector - The selector to look for. * @returns {Nullable} The nullable number of nested levels of the element. */ getNestedLevel(el: HTMLElement, selector: string): Nullable; /** * Set the level of a selector for a given element * * @param {HTMLElement} el - HTMLElement * @param {string} selector - The selector for the element. * @param {number} level - The level of the element. */ private setLevelToMap; } declare const _default: ComponentNestedLevelTracker; export default _default;