import { ReactElement, RefObject } from 'react';
import { AiMarkWithTooltipOrPopoverProps, CheckState } from '../../../../types';
import { MultiSelectFieldChipProps, MultiSelectFieldOption, MultiSelectFieldProps } from '../types';
export type MultiSelectFieldBaseInternalProps = {
    id: string;
    helperUid: string;
    selectedOptions: MultiSelectFieldOption[];
    onSelectedOptionsChange: (options: MultiSelectFieldOption[]) => void;
    displayAs: "popover" | "dialog";
    isDisabledOrReadOnly: boolean;
    disabled?: boolean;
    readOnly?: boolean;
    required?: boolean;
    placeholder?: string;
    size?: "small" | "medium" | "large";
    error?: boolean | string | ReactElement | string[];
    hasHelperText: boolean;
    disableClearButton: boolean;
    prefix?: string | ReactElement;
    suffix?: string | ReactElement;
    label: string;
    hideLabel?: boolean;
    hint?: ReactElement | string;
    labelAiMark?: AiMarkWithTooltipOrPopoverProps["aiMark"];
    errorMessages?: string | ReactElement | string[];
    warning?: string | string[];
    description?: ReactElement | string;
    className?: string;
    style?: React.CSSProperties;
    layoutStyles?: React.CSSProperties;
    pinned?: MultiSelectFieldProps["pinned"];
    groupToString?: (groupValue: string | number) => string;
    groupSorter?: (a: string | number, b: string | number) => number;
    virtualize?: boolean;
    options: MultiSelectFieldOption[];
    loading: boolean;
    loadingMore: boolean;
    hasMore: boolean;
    loadOptions: (searchValue: string, opts?: {
        initial?: boolean;
    }) => Promise<void>;
    loadMore: (searchValue: string) => Promise<void>;
    initialLoad: "immediate" | "open";
    initialLoadPerformed: boolean;
    setInitialLoadPerformed: (val: boolean) => void;
    inputWrapperRef: RefObject<HTMLDivElement>;
    selectAll?: {
        label: string;
        onClick: () => void;
        checkState: CheckState;
    };
    singleRow?: boolean;
    maxChips?: number;
    getChipProps?: (option: MultiSelectFieldOption) => MultiSelectFieldChipProps;
    handleRemoveOption: (option: {
        id: string | number;
    }) => void;
    handleClear: () => void;
};
export type MultiSelectFieldComboboxInternalProps = MultiSelectFieldBaseInternalProps & {
    debounceMs: number;
    selectFiltered?: (searchValue: string) => {
        label?: string;
        onClick: () => void;
        checkState: CheckState;
    };
    onSearchChange?: (searchValue: string) => void;
};
