export default class SidebarNav { _menuElement: HTMLElement; constructor(menuElement: HTMLElement); /** * Listen on the submenus open and close on click event. */ submenuToggle(): void; /** * Handles the loading of menus and sets their height. */ menuLoaded(): void; /** * Waits for menu items to be added to the menu element and executes a callback function when they are found. * * @param {Object} params - An object containing the following properties: * - selector {string} - The CSS selector used to find the menu items. * - done {Function} - The callback function to execute when menu items are found. * - parent {HTMLElement} - The parent element to observe for changes. If not provided, the menu element will be observed. * - recursive {boolean} - Whether to observe the entire subtree or just the immediate children. Defaults to false. */ waitForAddedMenuItems(params: any): void; /** * Sets the height of the submenu based on the number of menu items it contains. * * @param {HTMLUListElement} submenu - The submenu element to set the height for. * @param {boolean} isOpen - Whether the submenu is currently open or not. */ setMenuHeight(submenu: HTMLUListElement, isOpen: boolean): void; }