export class Localize { constructor({ country, currency }?: { country: string; currency: string; }); country: string; currency: string; /** * fetch a country's locale (extended info) by currencyCode or countryCode */ fetchLocale({ countryCode, currencyCode }: { countryCode: any; currencyCode: any; }): Promise; localize({ amount, locale }: { amount: any; locale: any; }): string; /** * Add locale info to the cart, and localizes estimatedCosts and line prices for the current country * @param {*} param0 * @returns */ cartTotals({ cart, locale }: any): any; cartCombinedTotals({ lines, locale }: { lines: any; locale: any; }): { discountAmount: { amount: any; currencyCode: any; locale: string; }; totalDiscountAmount: { amount: any; currencyCode: any; locale: string; }; totalSavingsAmount: { amount: any; currencyCode: any; locale: string; }; totalCompareAtAmount: { amount: any; currencyCode: any; locale: string; }; }; /** * Adds locale, compareAt and priceV2 locale pricing to a variant */ cartLine({ line, locale }: { line: any; locale: any; }): any; /** * Adds locale, compareAt and priceV2 locale pricing to a variant */ estimatedCost({ estimatedCost, locale, discountAmount, savingsAmount, compareAtPriceAmount, totalSavingsAmount, totalDiscountAmount, totalCompareAtAmount, }: { estimatedCost: any; locale: any; discountAmount: any; savingsAmount: any; compareAtPriceAmount: any; totalSavingsAmount: any; totalDiscountAmount: any; totalCompareAtAmount: any; }): any; cartLineSellingPlanAllocation({ sellingPlanAllocation, locale, quantity, }: { sellingPlanAllocation: any; locale: any; quantity: any; }): { priceAdjustments: any; sellingPlan: any; }; cartLineDiscountAllocations({ discountAllocations, quantity, locale, }: { discountAllocations: any; quantity: any; locale: any; }): { discountAllocations: { discountAmount: any; }[]; discountAmount: any; }; /** * Adds locale, locale min and max pricing to the product and compareAt and priceV2 locale pricing to its variants */ product({ product, locale }: { product: any; locale: any; }): any; /** * Localizes all product variants */ variants({ variants, locale }: { variants?: any[]; locale: any; }): any[]; /** * Adds locale, compareAt and priceV2 locale pricing to a variant */ variant({ variant, locale }: { variant: any; locale: any; }): any; /** * Localize all selling plan allocations */ sellingPlanAllocations({ sellingPlanAllocations, locale, }: { sellingPlanAllocations?: any[]; locale: any; }): { priceAdjustments: any; sellingPlan: any; }[]; /** * Localize a single selling plan */ sellingPlan({ allocation, locale }: { allocation: any; locale: any; }): { priceAdjustments: any; sellingPlan: any; }; orderTotals({ order, locale }: { order: any; locale: any; }): any; orderLine({ line, locale, currentLocale }: { line: any; locale: any; currentLocale: any; }): any; } //# sourceMappingURL=Localize.d.ts.map