import { ButtonDropdownProps } from '../interfaces';
export type TreeIndex = number[];
interface ItemsTreeApi {
    getItem: (index: TreeIndex) => ButtonDropdownProps.ItemOrGroup | null;
    getItemIndex: (item: ButtonDropdownProps.ItemOrGroup) => TreeIndex;
    getSequentialIndex: (index: TreeIndex, direction: -1 | 1, loop?: boolean) => TreeIndex | null;
    getParentIndex: (item: ButtonDropdownProps.ItemOrGroup) => TreeIndex | null;
}
export default function createItemsTree(items: ButtonDropdownProps.Items): ItemsTreeApi;
export declare function traverseItems(items: ButtonDropdownProps.Items, act: (item: ButtonDropdownProps.ItemOrGroup, index: TreeIndex) => void, parentIndex?: TreeIndex): void;
export {};
//# sourceMappingURL=create-items-tree.d.ts.map