import { RegisterOptions } from 'react-hook-form'; import { StylesConfig } from 'react-select'; import { ID } from '@zeniai/client-epic-state'; import { AncestorMetadata } from '../../reportTree/reportTreeTypes'; import { DisableMode } from '../common/common'; /** * Component & its Props */ interface OptionTypeBase { [key: string]: any; } export interface TreeViewOptions { ancestorMetadata?: AncestorMetadata[]; coaId?: string; collapsed?: boolean; depth?: number; hasChildren?: boolean; hasSiblings?: boolean; isLastNode?: boolean; isLeaf?: boolean; recommendedOptionIndex?: number; } export interface OptionType extends OptionTypeBase, TreeViewOptions { label: string; value: string; additionalNote?: string; displayName?: string; isDisabled?: boolean; isOptionRecommended?: boolean; } export interface GroupedOption { label: string; options: OptionType[]; } export interface GroupedSingleSelectFieldValue { allOptions: GroupedOption[]; selectedOption?: string; } interface TooltipProp { sticky: boolean; text: string; } export interface GroupedSingleSelectFieldProps { defaultValue: GroupedSingleSelectFieldValue; name: string; shouldShowChevronIcon: boolean; additionalLabelInfo?: string; allowEmpty?: boolean; autoFocus?: boolean; customPlaceholderColor?: string; customPlaceholderString?: string; customStyleConfig?: StylesConfig; isDisabled?: DisableMode; menuIsOpen?: boolean; menuPortal?: HTMLElement | null; noOptionsMessage?: { line1: string; line2: string; }; placeholder?: string; registerOptions?: RegisterOptions; showDownChevronWithValue?: boolean; showEmptyState?: boolean; style?: React.CSSProperties; tooltip?: TooltipProp; disableCurrentOption?: (option: string) => boolean; onMenuClose?: () => void; valueToId?: (value: string) => ID | undefined; valueToInfo?: (value: string) => string; } export declare const GroupedSingleSelectField: ({ name, registerOptions, defaultValue, isDisabled, style, placeholder, autoFocus, onMenuClose, menuIsOpen, valueToInfo, valueToId, showEmptyState, additionalLabelInfo, customStyleConfig, showDownChevronWithValue, customPlaceholderString, allowEmpty, tooltip, shouldShowChevronIcon, disableCurrentOption, noOptionsMessage, customPlaceholderColor, menuPortal, }: GroupedSingleSelectFieldProps) => import("react/jsx-runtime").JSX.Element; /** * internal Styled components */ export declare const CustomTooltip: ({ children, title, }: { children: string; title: string; }) => import("react/jsx-runtime").JSX.Element; export {};