/** 1. 在进入编辑服务前 计算出各种需要的列表 设置默认值 判断是否需要进入编辑服务页 */ export declare const getAutoAllocationStorage: (id: string | number) => any; export declare const setAutoAllocationStorage: (data: { [key: string]: boolean; }) => void; /** * 手动折扣后给商品价格和子商品价格重新计算 * * 计算逻辑: * 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入) * 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal) * * @param cacheItem - 缓存的商品项 * @param newTotal - 折扣后的新总价 * @param origin_total - 原始总价 */ export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: { newTotal: number; origin_total: number; }) => any;