@qite/tide-booking-component
Version:
React Booking wizard & Booking product component for Tide
17 lines (16 loc) • 1.23 kB
TypeScript
import { FlightSearchResponseFlight, FlightSearchResponseFlightSegment } from '@qite/tide-client';
import { ExtendedFlightSearchResponseItem } from '../types';
import { DepartureRange } from '../../shared/types';
export declare const getFlightKey: (segments: FlightSearchResponseFlightSegment[]) => string;
export declare const getOutwardFlight: (flightResult: ExtendedFlightSearchResponseItem) => FlightSearchResponseFlight | undefined;
export declare const getFlightSegments: (flight: FlightSearchResponseFlight | undefined) => FlightSearchResponseFlightSegment[];
export declare const getDepartureSegment: (flight: FlightSearchResponseFlight | undefined) => FlightSearchResponseFlightSegment | undefined;
export declare const getArrivalSegment: (flight: FlightSearchResponseFlight | undefined) => FlightSearchResponseFlightSegment | undefined;
export declare const getNumberOfStops: (flight: FlightSearchResponseFlight | undefined) => number;
export declare const getNumberOfStopsLabel: (
flight: FlightSearchResponseFlight | undefined,
directLabel: string,
stopsLabel: string,
stopLabel: string
) => string;
export declare const getDepartureRangeName: (translations: any, range: DepartureRange | undefined) => string;