UNPKG

@qite/tide-booking-component

Version:

React Booking wizard & Booking product component for Tide

17 lines (16 loc) 1.11 kB
import { BookingPackageFlightMetaData } from '@qite/tide-client/build/types'; import { FlightLine, RoomTraveler } from '../../types'; export declare const getTravelersText: ( rooms: { adults: RoomTraveler[]; children: RoomTraveler[]; }[], translations: any ) => string[]; export declare const getDateText: (date: string | undefined, hideYear?: boolean) => string | undefined; export declare const getDatePeriodText: (translations: Record<string, any>, from?: string, to?: string, nightsOnly?: boolean) => string | undefined; export declare const getFlightText: (firstFlight: FlightLine | undefined, lastFlight: FlightLine | undefined) => string; export declare const getAirlines: (flightLines: FlightLine[] | undefined) => string; export declare const getFlightHours: (firstFlight: FlightLine | undefined, lastFlight: FlightLine | undefined) => string; export declare const parseFlightLines: (metaDatas: BookingPackageFlightMetaData) => FlightLine[] | undefined; export declare const getPaxTypeTranslation: (translations: Record<string, any>, paxType: string, numberOfPax: number) => string;