/** * 规范化百分比输入 * * 支持以下格式: * - "2%" 或 "2.5%" → 2 或 2.5 * - 2 或 2.5 (数字直接作为百分比) → 2 或 2.5 * * @param value - 百分比值,可以是数字或带 "%" 的字符串 * @returns 规范化后的百分比数值 * * @example * ```typescript * normalizePercent("2%"); // 返回 2 * normalizePercent("2.5%"); // 返回 2.5 * normalizePercent(2); // 返回 2 * normalizePercent(2.5); // 返回 2.5 * ``` */ export declare function normalizePercent(value: number | string | undefined): number;