/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import Ribbon from './Ribbon'; import { PresetColorType, PresetStatusColorType } from '../../_util/colors'; import { LiteralUnion } from '../../_util/type'; export { ScrollNumberProps } from './ScrollNumber'; interface CompoundedComponent extends React.FC { Ribbon: typeof Ribbon; } export interface BadgeProps { count?: React.ReactNode; showZero?: boolean; overflowCount?: number; dot?: boolean; style?: React.CSSProperties; prefixCls?: string; scrollNumberPrefixCls?: string; className?: string; status?: PresetStatusColorType; color?: LiteralUnion; text?: React.ReactNode; size?: 'default' | 'small'; offset?: [number | string, number | string]; title?: string; } declare const Badge: CompoundedComponent; export default Badge;