import { ComputedRef } from 'vue'; /** * 计算属性,过滤出允许的插槽 * @returns {string[]} 过滤后的插槽名称数组 */ export declare function useFilterSlots(): { filtersSlots: ComputedRef; }; /** * 计算属性,过滤出存在的插槽 * @param names 插槽名称 * @returns 存在的插槽名称计算属性 */ export declare const useExistingSlots: (names: string[]) => ComputedRef; /** * 格式化数字为两位小数的字符串 * @param value 要格式化的数值 * @returns 格式化后的字符串,例如:1 -> "1.00", 1.5 -> "1.50", 1.234 -> "1.23" */ export declare function formatToTwoDecimal(value: number | string | null | undefined): string; /** * 格式化数字为两位小数的字符串(带千分位分隔符) * @param value 要格式化的数值 * @returns 格式化后的字符串,例如:1000 -> "1,000.00", 1234.5 -> "1,234.50" */ export declare function formatToTwoDecimalWithComma(value: number | string | null | undefined): string; /** * description: 获取Y轴刻度label的最大宽度,用于Y轴label的左对齐 * params { yMax: Y轴最大值 ,stepCount: 默认五个刻度 需要4个间隔 } * return { yAxisMax: Y轴最大值, yAxisValues: Y轴刻度值, yAxisLabelMaxWidth: Y轴刻度label最大宽度, stepValue: Y轴步距 } * */ export declare function getYAxisWidth(yMax: number, stepCount?: number): { yAxisMax: number; yAxisValues: number[]; yAxisLabelMaxWidth: number; stepValue: number; };