import * as React from 'react'; import type { PresetColorType, PresetStatusColorType } from '../_util/colors'; import type { LiteralUnion } from '../_util/type'; import CheckableTag from './CheckableTag'; export type { CheckableTagProps } from './CheckableTag'; export interface TagProps extends React.HTMLAttributes { prefixCls?: string; className?: string; rootClassName?: string; color?: LiteralUnion; closable?: boolean; /** Advised to use closeIcon instead. */ closeIcon?: boolean | React.ReactNode; /** @deprecated `visible` will be removed in next major version. */ visible?: boolean; onClose?: (e: React.MouseEvent) => void; style?: React.CSSProperties; icon?: React.ReactNode; bordered?: boolean; } export interface TagType extends React.ForwardRefExoticComponent> { CheckableTag: typeof CheckableTag; } declare const Tag: TagType; export default Tag;