import { ContainerIterator } from "js-sdsl/dist/esm/container/ContainerBase"; import TreeContainer from "js-sdsl/dist/esm/container/TreeContainer/Base"; declare abstract class TreeIterator extends ContainerIterator { abstract readonly container: TreeContainer; /** * @description Get the sequential index of the iterator in the tree container.
* Note: * This function only takes effect when the specified tree container `enableIndex = true`. * @returns The index subscript of the node in the tree. * @example * const st = new OrderedSet([1, 2, 3], true); * console.log(st.begin().next().index); // 1 */ get index(): number; pre(): this; next(): this; } export default TreeIterator;