import { ReactNode } from 'react'; import { Price } from '@jetshop/core/types'; export interface UsePrice { price: Price; previousPrice?: Price; currencyOverride?: { code: string; culture: string; }; /**Optional formatter to format currency */ formatter?(price: number, currencyCode?: string, culture?: string): string; /** Override the channel settings for includeVat */ includeVat?: boolean; } export declare function usePrice({ currencyOverride, price, previousPrice, includeVat, formatter: defaultFormatter }: UsePrice): { hasDiscount: boolean; includesVat: boolean; currencyLocale: { code: string; culture: string; }; pricing: { [k: string]: { vat: number; value: number; }; }; formattedPricing: { previousPrice: ReactNode; price: ReactNode; }; }; /** * Normalise the price to an object with keys `value` and `vat` */ export declare function selectPriceType(includeVat: boolean, priceObj: Price): { vat: number; value: number; } | null;