import { Collection, Key, Node } from '@react-types/shared'; export declare class TreeCollection implements Collection> { private keyMap; private iterable; private firstKey; private lastKey; constructor(nodes: Iterable>, { expandedKeys }?: { expandedKeys?: Set; }); [Symbol.iterator](): IterableIterator>; get size(): number; getKeys(): IterableIterator; getKeyBefore(key: Key): Key | null; getKeyAfter(key: Key): Key | null; getFirstKey(): Key | null; getLastKey(): Key | null; getItem(key: Key): Node | null; at(idx: number): Node | null; }