import { RegisterOptions } from 'react-hook-form';
import { StylesConfig } from 'react-select';
import { ID } from '@zeniai/client-epic-state';
import { DisableMode } from '../common/common';
/**
 * Component & its Props
 */
interface OptionTypeBase {
    [key: string]: any;
}
export interface OptionType extends OptionTypeBase {
    label: string;
    value: string;
    isDisabled?: boolean;
    isOptionRecommended?: boolean;
}
export interface AutoCompleteGroupedOption {
    label: string;
    options: OptionType[];
}
export interface AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldValue {
    defaultOptions: AutoCompleteGroupedOption[];
    selectedOption?: string;
}
interface TooltipProp {
    sticky: boolean;
    text: string;
}
export interface AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldProps {
    defaultValue: AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldValue;
    name: string;
    autoFocus?: boolean;
    customStyleConfig?: StylesConfig<OptionType, false>;
    isDisabled?: DisableMode;
    isOptionRemovable?: boolean;
    menuIsOpen?: boolean;
    menuPortal?: HTMLElement | null;
    placeholder?: string;
    registerOptions?: RegisterOptions;
    showDownChevronWithValue?: boolean;
    style?: React.CSSProperties;
    tooltip?: TooltipProp;
    loadOptions: (inputValue: string, callback: (defaultOptions: AutoCompleteGroupedOption[]) => void) => void;
    getRenameOptionText?: (renameText: string) => string | null;
    onClickRenameOption?: (newName: string) => void;
    onMenuClose?: () => void;
    valueToId?: (value: string) => ID | undefined;
    valueToInfo?: (value: string) => string;
}
export declare const AutoCompleteGroupedCreatableSingleSelectCustomGroupField: ({ name, registerOptions, menuIsOpen, defaultValue, isDisabled, style, placeholder, customStyleConfig, showDownChevronWithValue, isOptionRemovable, autoFocus, getRenameOptionText, onClickRenameOption, onMenuClose, valueToInfo, valueToId, loadOptions, menuPortal, }: AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldProps) => 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 {};
