export interface ProductDetailOptionItem {
    product_option_item_id?: number | string;
    option_group_item_id?: number | string;
    option_group_id?: number | string;
    num?: number;
    price?: number | string;
}
export interface ProductDetailBundleItem {
    option?: ProductDetailOptionItem[];
    [key: string]: any;
}
export interface ProductDetailCallbackPayload {
    id?: number | string | null;
    product_id?: number | string | null;
    variant_id?: number | string;
    product_variant_id?: number | string;
    quantity?: number;
    num?: number;
    option?: ProductDetailOptionItem[];
    product_option_item?: ProductDetailOptionItem[];
    bundle?: ProductDetailBundleItem[];
    product_bundle?: ProductDetailBundleItem[];
    unique?: string;
    session?: any;
    form?: any;
    service_times?: number;
    machine_code?: string;
    schedule_id?: number[];
    duration?: number;
    policy_id?: number;
    source_shop_id?: number;
    origin?: any;
    [key: string]: any;
}
export interface ScanOrderOrderProductInput {
    product_id: number | null;
    product_variant_id: number;
    num: number;
    product_option_item: Array<{
        product_option_item_id: number;
        option_group_id: number;
        num: number;
        price: number;
    }>;
    product_bundle: ProductDetailBundleItem[];
    /** 券后单品单价；初次加购由入口置为 selling_price，之后由 SDK Rules 引擎维护。 */
    selling_price: string;
    /** 券前单品单价（店铺售价）。 */
    original_price: string;
    tax_fee: string;
    is_charge_tax: number;
    metadata: Record<string, any>;
    _origin: Record<string, any>;
}
export declare function transformProductDetailToOrderProduct(params: {
    payload: ProductDetailCallbackPayload;
    fallbackProductId?: number | string | null;
    sourceItem?: Record<string, any>;
}): ScanOrderOrderProductInput | null;
