import { type ReactElement } from 'react'; import type { OptionProps } from './Option.js'; import type { BaseGroup, BaseOption } from '../types.js'; /** * This function will sort the given children (options or groups) by their selection state and will store * the index in a map in order to apply the sorting in a quick fashion again. * @internal */ export declare function sortSelectedOptions>(childrenArray: Array, isMulti, Group>>>): [ sortedChildren: Array, isMulti, Group>>>, sortingMap: WeakMap ]; /** * This function will apply the sorting stored in the passed map in order to. */ export declare function applyStoredSelectionSortingOptions>(childrenArray: Array, isMulti, Group>>>, sortingMap: WeakMap): [ sortedChildren: Array, isMulti, Group>>>, sortingMap?: WeakMap ];