import { Component, ReactNode, HTMLAttributes } from 'react'; export interface BadgeProps { /** * 自定义 class */ className?: string; /** * 标记类型 */ type?: 'standard' | 'dot' | 'status'; /** * 标记内容 * - number: 数量 * - string: 内容 */ content?: ReactNode; /** * content 为 number时 最大显示数量 n,超过则显示 n+ */ max?: number; /** * 颜色 * @remarks 已废弃的 `'primary'` 仍会在运行时归一到 `'brand'`,但不再作为合法类型 */ color?: 'brand' | 'success' | 'warning' | 'danger' | 'inactive'; /** * 原生 hover title tip,如不同则以 content 为 tip,以便可以显示超出 max 的 count */ title?: HTMLAttributes['title']; } export declare class Badge extends Component { static displayName: string; static defaultProps: { className: string; type: string; max: number; }; get color(): "brand" | "success" | "warning" | "danger" | "inactive" | undefined; get className(): string; get titleTip(): string | undefined; get markContent(): string | import("react").ReactElement> | null; renderMark(): false | "" | import("react/jsx-runtime").JSX.Element; render(): import("react/jsx-runtime").JSX.Element; }