UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

13 lines (12 loc) 678 B
import { Offer } from "@duffel/api/types"; import { DuffelAncillariesPriceFormatters } from "../types/DuffelAncillariesProps"; /** * Formats the prices of the available services of an offer according to the * priceFormatters passed in. * * @param offer An offer from the Duffel API * @param priceFormatters Optional price formatting functions. If not passed in, the offer will be returned unchanged. * @returns An offer with the prices of its available services formatted according to the priceFormatters passed in. */ declare const formatAvailableServices: (offer: Offer, priceFormatters?: DuffelAncillariesPriceFormatters) => Offer; export { formatAvailableServices };