import { type ReactElement } from 'react'; import type { GroupBase } from 'react-select'; import type { SelectV2ContentProps } from '../SelectContent.js'; import type { OptionOrGroup, BaseOption } from '../types.js'; /** Type guard helper to identify an element as an Option */ export declare function _isOption(optionOrGroup: any): optionOrGroup is BaseOption; /** Type guard helper to identify an element as a Group */ export declare function _isGroup(optionOrGroup: any): optionOrGroup is GroupBase; /** * @internal */ export declare function safeStringify(value: unknown, shouldReportError: boolean): string; /** * Helper hook that will extract Options or Groups from the Content children * and return a valid options or group array for react-select * * @internal */ export declare function useSelectV2Options(contentSlot: ReactElement | null): { optionsOrGroups: OptionOrGroup>; optionsHavePrefix: boolean; allOptions: BaseOption[]; };