/**
 * @author Hanz
 * @date 2022/1/11 上午10:15
 * @description tag
 */
import React, { PropsWithChildren } from 'react';
import TagGroup, { TagGroupProps } from './TagGroup';
import './index.scss';
type PresetColorTypes = 'blue' | 'green' | 'yellow' | 'red';
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
    /** 颜色 */
    color?: string | PresetColorTypes;
    /** 可关闭 */
    closable?: boolean;
    /** 关闭图标 */
    closeIcon?: React.ReactNode;
    /** 是否显示 */
    visible?: boolean;
    /** onclose */
    onClose?: (event: React.MouseEvent) => void;
    /** 图标 */
    icon?: React.ReactNode;
    /** cls */
    className?: string;
    /** 显示边框 */
    bordered?: boolean;
    /** 大小 */
    size?: 'small' | 'large';
    /** 提示最大宽度 */
    tipMaxWidth?: number | string;
}
export type TagPropsWithChild = PropsWithChildren<TagProps>;
export type { TagGroupProps };
export { TagGroup };
export declare const Tag: React.FC<TagPropsWithChild>;
export default Tag;
