import { AsyncIterator } from "asynciterator"; export { ArrayIterator, type AsyncIterator, MappingIterator, } from "asynciterator"; type TreeNode = { [property: string]: T[] | TreeNode; }; export type Tree = T[] | TreeNode; type Subtree = { type: "node"; tree: TreeNode; parent?: Subtree; items: string[]; path: string[]; index: number; } | { type: "leaf"; parent?: Subtree; items: T[]; path: string[]; index: number; }; export declare class TreeIterator extends AsyncIterator<[...string[], T]> { private _tree; private _pointer; constructor(tree: Tree); read(): [...string[], T] | null; protected _buildPointerFromSource(tree: Tree, path?: string[]): Subtree; protected _findNextCommonSegment(): void; protected _findNextLeaf(): void; } //# sourceMappingURL=asynciterator.d.ts.map