import { DescendantsList } from '../Descendants.types'; /** * Finds the index of the registered descendant _immediately preceding_ the search element in the DOM, * and returns _one after_ that index. * (The element _after_ the element _before_ our search element, is our search element) * * e.g.: * * ```tsx *