import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { TypographyBaseSize, TypographyBaseType, TypographyBaseRule, OmitTypographyProps, TypographyBaseTruncate } from './interface'; import { CopyableConfig, LinkType } from './title'; type OmitNumeralProps = OmitTypographyProps; export interface NumeralProps extends Omit, OmitNumeralProps> { rule?: TypographyBaseRule; precision?: number; truncate?: TypographyBaseTruncate; parser?: (value: string) => string; children?: React.ReactNode; className?: string; code?: boolean; component?: React.ElementType; copyable?: CopyableConfig | boolean; delete?: boolean; disabled?: boolean; icon?: React.ReactNode | string; link?: LinkType; mark?: boolean; size?: TypographyBaseSize; strong?: boolean; style?: React.CSSProperties; type?: TypographyBaseType; underline?: boolean; } export default class Numeral extends PureComponent { static propTypes: { rule: PropTypes.Requireable<"text" | "numbers" | "bytes-decimal" | "bytes-binary" | "percentages" | "exponential">; precision: PropTypes.Requireable; truncate: PropTypes.Requireable<"round" | "ceil" | "floor">; parser: PropTypes.Requireable<(...args: any[]) => any>; copyable: PropTypes.Requireable>; delete: PropTypes.Requireable; disabled: PropTypes.Requireable; icon: PropTypes.Requireable>; mark: PropTypes.Requireable; underline: PropTypes.Requireable; link: PropTypes.Requireable>; strong: PropTypes.Requireable; type: PropTypes.Requireable<"warning" | "success" | "primary" | "secondary" | "danger" | "tertiary" | "quaternary">; size: PropTypes.Requireable<"small" | "normal" | "inherit">; style: PropTypes.Requireable; className: PropTypes.Requireable; code: PropTypes.Requireable; component: PropTypes.Requireable; }; static defaultProps: { rule: string; precision: number; truncate: string; parser: any; copyable: boolean; delete: boolean; icon: string; mark: boolean; underline: boolean; strong: boolean; link: boolean; type: string; style: {}; size: string; className: string; }; formatNodeDFS(node: any): any; render(): React.JSX.Element; } export {};