import React from 'react'; /** * Get all dropdown items with appropriate index * for navigations with keyboard and highlighting. * * By defualt returns the children in the structure which they occur. * Returns a flat list of only DropdownItems if flat = true */ declare function getIndexedDropdownItems(children: React.ReactNode, flat?: boolean): (number | React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)> | React.ReactFragment)[] | null | undefined; /** * The highest highlight index for a collection of children within a dropdown */ declare const getMaxHighlightIndex: (children: React.ReactNode) => number; export { getIndexedDropdownItems, getMaxHighlightIndex };