import Decimal from 'decimal.js'; /** 业务值保留十进制文本,运算使用十进制库;整型标识和时间不经过此入口。@author nokecy */ export declare const BusinessDecimal: typeof Decimal; export type DecimalValue = string | number | Decimal | null | undefined; export declare const decimal: (value: DecimalValue) => Decimal; export declare const decimalText: (value: DecimalValue) => string; export declare const nonNegativeDecimal: (value: DecimalValue) => string; export declare const roundDecimal: (value: DecimalValue, places: number) => string; export declare const sumDecimals: (values: DecimalValue[]) => string; /** 指定取位规则显示,千分位直接处理文本,不转换为 JavaScript number。@author nokecy */ export declare const formatDecimal: (value: DecimalValue, places?: number, minimumPlaces?: number) => string;