import { Order } from "@deenruv/core"; /** * @description * From the [Stripe docs](https://stripe.com/docs/currencies#zero-decimal): * > All API requests expect amounts to be provided in a currency’s smallest unit. * > For example, to charge 10 USD, provide an amount value of 1000 (that is, 1000 cents). * > For zero-decimal currencies, still provide amounts as an integer but without multiplying by 100. * > For example, to charge ¥500, provide an amount value of 500. * * Therefore, for a fractionless currency like JPY, we need to divide the amount by 100 (since Deenruv always * stores money amounts multiplied by 100). See https://github.com/aexol-studio/deenruv/issues/1630 */ export declare function getAmountInStripeMinorUnits(order: Order): number; /** * @description * Performs the reverse of `getAmountInStripeMinorUnits` - converting the Stripe minor units into the format * used by Deenruv. */ export declare function getAmountFromStripeMinorUnits(order: Order, stripeAmount: number): number;