import { IkasOrderShippingLine, IkasPaymentGateway } from "../../../storefront-models/src"; /** * Calculates the additional price adjustments for a payment gateway, applying ratio-based or fixed amounts sequentially after excluding shipping costs. * * @ai-category PaymentGateway * @ai-related getCheckoutTotalFinalPrice * * @param paymentGateway - The payment gateway containing the additional price rules to apply. * @param totalFinalPrice - The total final price of the order before additional price adjustments. * @param shippingLines - The shipping lines whose prices are subtracted from the total before calculating additional prices, or null if none. * @returns An array of calculated additional price objects with name, amount, and type, or undefined if no additional prices are configured. * * @example * ```typescript * import { getPaymentGatewayCalculatedAdditionalPrices } from "@ikas/bp-storefront"; * * const additionalPrices = getPaymentGatewayCalculatedAdditionalPrices( * paymentGateway, * 100, * shippingLines * ); * additionalPrices?.forEach((price) => { * console.log(price.name, price.amount, price.type); * }); * ``` */ export declare function getPaymentGatewayCalculatedAdditionalPrices(paymentGateway: IkasPaymentGateway, totalFinalPrice: number, shippingLines: IkasOrderShippingLine[] | null): { name: string; amount: number; type: import("../../../storefront-models/src").IkasPaymentGatewayAdditionalPriceType; }[] | undefined;