import Decimal from 'decimal.js';
import { ICalculatePriceParams } from './types';
export declare const handleProductInfo: (eventDetail: any, num: number) => {
    totalPrice: number;
    originTotal: any;
    is_charge_tax: any;
};
/**
 * 获取商品总价
 * @description 当前总价计算基于商品数量为1
 * @param item 商品
 * @returns 商品总价
 */
export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
/**
 * 获取商品原始总价
 * @description 当前总价计算基于商品数量为1
 * @param item 商品
 * @returns 商品原始总价
 */
export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
export declare const formatBundleToOrigin: (bundle: any) => any;
export declare const formatOptionsToOrigin: (options: any) => any;
export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
    total: number;
    protocols: any;
} | null;
/**
 * 获取商品定金
 * @description 定金基于商品售价来算，最终乘商品数量
 * 1、如果套餐主商品有定金规则，则定金为：（套餐商品总售价 * 定金百分比 + 定金固定金额）* 商品数量
 * 2、如果套餐主商品没有定金规则，子商品有定金规则，则定金为：（套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额）* 商品数量，最终将所有子商品定金相加
 * 3、普通商品/单规格商品/组合规则商品，定金规则：（商品总售价 * 定金百分比 + 定金固定金额）* 商品数量
 * @param params 参数
 * @returns 商品定金
 */
export declare const getProductDeposit: (params: {
    cartItem: any;
    product: any;
    bundle?: any;
    options?: any;
    num?: number;
}) => {
    total: number;
    protocols: any;
} | null;
/**
 * 计算商品定金
 * @param params 参数
 * @returns 商品定金
 */
export declare const calculateProductDeposit: (params: {
    depositData: {
        deposit_fixed?: string;
        deposit_percentage?: string;
    };
    total: string | number;
    num: number;
}) => {
    result: boolean;
    depositTotal: Decimal;
};
