import React from 'react'; export interface Props { /** * 徽章内容 */ badgeContent?: React.ReactNode; /** * 自定义类名 */ badgeClassName?: string; /** * 自定义徽章样式 */ badgeStyle?: React.CSSProperties; /** * 最大值,超过该数值,将显示`${max}+` */ max?: number; /** * 自定义徽章背景色 */ color?: 'primary' | 'accent' | 'success' | 'error' | 'info' | 'warning' | 'danger'; /** * 是否显示小圆点 */ dot?: boolean; /** * 徽章不可见 */ invisible?: boolean; /** * 数字为0时是否显示 */ showZero?: boolean; /** * 徽章元素的title属性,默认为badgeContent(如果badgeContent是数字) * */ title?: string; children: React.ReactNode; /** * 自定义样式 */ style?: React.CSSProperties; /** * 自定义类名 */ className?: string; /** * 小尺寸 */ small?: boolean; } export declare const BadgeContent: import("styled-components").StyledComponentClass & React.HTMLAttributes & { color: "primary" | "accent" | "success" | "error" | "info" | "warning" | "danger"; small?: boolean; }, import("../types").Theme, React.ClassAttributes & React.HTMLAttributes & { color: "primary" | "accent" | "success" | "error" | "info" | "warning" | "danger"; small?: boolean; }>; export declare const BadgeDot: import("styled-components").StyledComponentClass & React.HTMLAttributes & { color: "primary" | "accent" | "success" | "error" | "info" | "warning" | "danger"; small?: boolean; }, import("../types").Theme, React.ClassAttributes & React.HTMLAttributes & { color: "primary" | "accent" | "success" | "error" | "info" | "warning" | "danger"; small?: boolean; }>; declare function Badge(props: Props): JSX.Element; declare namespace Badge { var defaultProps: { max: number; invisible: boolean; showZero: boolean; color: string; }; } export default Badge;