/** * 把范围 [0,1] 的数值格式化为更易读的百分比字符串 * * @param value 要格式化的数字,[0,1] * * @example * readablePercent(0.5) // "50%" * readablePercent(0.5, { precision: 2 }) // "50.00%" * readablePercent(0.5, { art: "shadow" }) // "█████░░░░░ 50%" * readablePercent(0.5, { art: "ascii" }) // "[=====-----] 50%" */ export declare function readablePercent(value: number, options?: { /** 小数点后保留的位数,默认 0 */ precision?: number; /** 显示为字符画 * 如: * ██████░░░░ 50% * [==========----------] 50% */ art?: boolean | "shadow" | "ascii"; /** 字符画的宽度,默认 10 */ artWidth?: number; }): string; //# sourceMappingURL=readablePrecent.d.ts.map