import type { IRouterSlot } from '../model.js'; /** * Queries the parent router. * @template D * @param {Element} $elem - The element to start the query from. * @returns {IRouterSlot | null} The parent router slot, or null if none was found. */ export declare function queryParentRouterSlot($elem: Element): IRouterSlot | null; /** * Traverses the roots and returns the first match. * The minRoots parameter indicates how many roots should be traversed before we started matching with the query. * @template T * @param {Element} $elem - The element to start the traversal from. * @param {string} query - The selector to match against. * @param {number} [minRoots] - The minimum number of roots to traverse before matching. * @param {number} [roots] - The number of roots already traversed. * @returns {T | null} The first matching element, or null if none was found. */ export declare function queryParentRoots($elem: Element, query: string, minRoots?: number, roots?: number): T | null;