import { ChartDimension, ChartMeasure, DisplayBehaviour, EntityType, PrimitiveType, Property, PropertyMeasure } from '@metad/ocap-core'; import { SeriesComponentType } from './types'; export declare function defaultDigitsInfo(measure: Partial): string; /** * Format measure value number with short unit and measure unit * return structured object not string * * @param measure * @param property * @param value * @param locale * @param shortNumber * @returns */ export declare function formatMeasureValue(measure: Partial, property: PropertyMeasure, value: number | string, locale: string, shortNumber?: boolean): { value: string; shortUnit: string; unit: string; } | { value: string; unit: string; shortUnit?: undefined; } | { value?: undefined; shortUnit?: undefined; unit?: undefined; }; /** * Format measure value number with short unit and measure unit * return result string * * @param measure 度量 * @param value 数值 * @param locale 地区 * @param shortNumber 是否缩短 * @returns */ export declare function formatMeasureNumber({ measure, property }: { measure: Partial; property: Property; }, value: number | string, locale: string, shortNumber?: boolean): string; export declare function _formatDimensionValue(item: any, key: string, caption: string, displayBehaviour: DisplayBehaviour, dataType: string): string; export declare function formatMeasureLabel(item: unknown, { measure, property }: { measure: ChartMeasure; property: Property; }, locale: string, shortNumber?: boolean): string; export declare function formatMeasuresLabel(item: unknown, measures: Array<{ measure: ChartMeasure; property: Property; }>, locale: string, shortNumber?: boolean): string; export declare function setCategoryAxisLabel(category: any, items: any[], chartCategory: ChartDimension, entityType: EntityType): void; export declare function format(value: any, formatter: any): string; /** * shorNumber * @param value 传入的需要进行 short 的数据 * @returns null 或者 short结果数组 (例如: ['4.53', 'K'] ['5.62', '万']) */ export declare function formatShortNumber(value: number | string, locale?: string, factor?: any, shortUnits?: any): [number, string]; export declare function getSeriesComponentMeasureName(seriesComponents: Array, i: number): string; export declare function formatCategoryLabel(value: PrimitiveType, valueTexts: Map, category: ChartDimension): string; /** * 数字缩写格式化 * @param value 数字 * @param shortNumber 数字是否缩写 */ export declare function echartsFormatNumber(value: number, digitsInfo?: string, shortNumber?: boolean, locale?: string): string; /** * @todo locale * * @param value * @returns */ export declare const DefaultValueFormatter: (value: number) => string;