import React__default from 'react';

type ID = string;
interface Item {
    name: string;
    id: ID;
}
interface TagSelectorProps<T extends Item> {
    options?: T[];
    selected?: ID[];
    placeholder?: string;
    disabled?: boolean;
    maxCount?: number;
    style?: React__default.CSSProperties;
    size?: 'large' | 'medium' | 'small';
    readOnly?: boolean;
    error?: boolean;
    onChange?: (selected: ID[]) => void;
    tagRender?: (item: T, onClickDelete?: () => void) => React__default.ReactElement;
    DropdownContainer?: DropdownContainer<T>;
    open?: boolean;
    dropdownItemRender?: (item: T) => React__default.ReactElement;
}
type DropdownContainer<T> = (props: {
    items: T[];
    children: React__default.ReactElement;
    currentItem?: T;
}) => React__default.ReactElement;
declare function TagSelector<T extends Item>(props: TagSelectorProps<T>): React__default.ReactElement;

export { TagSelector, type TagSelectorProps };
