import { ReactNode } from "react"; import { TagProps } from "."; declare type TagListProps = { /** 是否支持多选 */ multi?: boolean; /** 激活状态的 index */ value?: T; /** 改变激活状态后的回调函数 */ onChange?: (active: T) => void; /** 改变激活状态后的回调函数 */ onRemove?: (index: number, item: TagProps) => void; /** tag 配置数组 */ tags: (TagProps & { children?: ReactNode; })[]; } & Omit; declare function TagList({ tags, value, onChange, multi, onRemove, ...rest }: TagListProps): JSX.Element; export default TagList;