letsfg 2026.5.73 → 2026.5.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -283,7 +283,7 @@ declare function getOfferDetailPromptNotes(offer: OfferDetailLike): string[];
283
283
  * const flights = await bt.search('GDN', 'BER', '2026-03-03');
284
284
  *
285
285
  * // Developer API (look-to-book search: 200 free after every booking)
286
- * const bt2 = new LetsFG({ apiKey: 'letsfg_...' });
286
+ * const bt2 = new LetsFG({ apiKey: process.env.LETSFG_API_KEY });
287
287
  * const flights2 = await bt2.search('LHR', 'JFK', '2026-04-15');
288
288
  * ```
289
289
  */
@@ -458,6 +458,12 @@ declare class ValidationError extends LetsFGError {
458
458
  declare function offerSummary(offer: FlightOffer): string;
459
459
  /** Get cheapest offer from search results */
460
460
  declare function cheapestOffer(result: FlightSearchResult): FlightOffer | null;
461
+ /**
462
+ * Every hotel booking job status after which polling is pointless. `attention` is
463
+ * final for the caller too: a person settles it, and booking again would book twice.
464
+ */
465
+ declare const HOTEL_BOOKING_FINAL_STATUSES: readonly ["succeeded", "failed", "attention"];
466
+ type HotelBookingStatus = 'in_progress' | (typeof HOTEL_BOOKING_FINAL_STATUSES)[number];
461
467
  declare class LetsFG {
462
468
  private bearerToken;
463
469
  private apiKey;
@@ -587,12 +593,17 @@ declare class LetsFG {
587
593
  * Slow by nature — the supplier streams a whole city and every rate is priced
588
594
  * — so this gets its own generous timeout rather than the client default.
589
595
  *
590
- * Each offer carries `price` (what the guest pays), `reservation_fee_now`
591
- * (the 5% taken at booking), `balance_to_supplier`, `balance_due_by` and
592
- * `free_cancellation_until`. There is no wholesale figure to quote by mistake.
596
+ * The response carries `session_id`, `currency`, `supplier_currency`,
597
+ * `markup_rate`, `fx_rate`, `fx_as_of`, `count`, `hotels`, `terms` and
598
+ * `caveats`. Each offer carries `price` (what the guest pays, in `currency`),
599
+ * `currency`, `fx_rate`, `expected_cost` (the supplier's cost, in PLN),
600
+ * `refundable`, `free_cancellation_until` (refundable rates only),
601
+ * `cancellation_policy` and its own `session_id`.
593
602
  *
594
- * Keep `session_id` and the chosen offer's `combination_id_v2`: together they
595
- * identify the exact rate, and booking needs both.
603
+ * `price` is the supplier's cost plus `markup_rate` (6.4% for Revolut Pay or an
604
+ * EEA-issued card, 8.3% for a card issued outside the EEA); nothing is added at
605
+ * booking. Keep the chosen offer whole: bookHotel() needs its `session_id`,
606
+ * `combination_id_v2`, `price`, `expected_cost`, `currency` and `fx_rate`.
596
607
  */
597
608
  searchHotels(params: {
598
609
  cityId: number;
@@ -606,76 +617,113 @@ declare class LetsFG {
606
617
  nationality?: string;
607
618
  limit?: number;
608
619
  withImages?: boolean;
620
+ /** ISO code every `price` is quoted in. Default USD; PLN is the supplier's own. */
621
+ currency?: string;
609
622
  }): Promise<Record<string, unknown>>;
610
623
  /**
611
624
  * Start a booking. Returns a job immediately — it does NOT book inline.
612
625
  *
613
- * A booking takes minutes: the rate is re-blocked at the supplier, every
614
- * price and date rail is checked, the 5% reservation fee is charged to your
615
- * card, and only then is the room committed. No proxy holds a connection that
616
- * long, so this returns at once and you poll hotelBooking() for the outcome.
617
- * Use bookHotelAndWait() if you would rather block.
626
+ * What happens, in order: the offer's full `price` is HELD on the Revolut
627
+ * payment method connected to this account (authorised, not taken); LetsFG
628
+ * books the room with the supplier and pays the supplier itself; the hold is
629
+ * captured only once the supplier has confirmed. If the booking fails for any
630
+ * reason, the hold is released and nothing is charged. There is no
631
+ * reservation fee, no deposit and no pay link.
618
632
  *
619
- * Because the fee is taken BEFORE the commit, a declined card costs nothing
620
- * to unwind: no reservation exists and nothing is charged.
633
+ * A booking takes minutes and no proxy holds a connection that long, so this
634
+ * returns at once and you poll hotelBooking() for the outcome. Use
635
+ * bookHotelAndWait() if you would rather block.
621
636
  *
622
- * Send `expectedPrice` and `expectedBalance` back exactly as search returned
623
- * them — the booking is refused if the supplier has moved beyond tolerance,
624
- * so a guest is never charged a price they did not agree to.
637
+ * Send `expectedPrice` (the offer's `price`), `expectedCost`, `currency` and
638
+ * `fxRate` exactly as search returned them. The booking is refused if the
639
+ * supplier's live cost is above `expectedCost`, and a USD offer sent without
640
+ * its `currency` is refused with 400 price_mismatch (the API assumes PLN).
641
+ * Guest names, phone and e-mail are checked before anything is held; a problem
642
+ * returns 400 invalid_details naming the fields.
625
643
  *
626
- * Do NOT call this again for the same rate while a job is running: that books
627
- * the room twice and charges two reservation fees.
644
+ * Do NOT call this again for a booking whose job is still running: poll it.
645
+ * A retry of the same booking returns the job already under way
646
+ * (`duplicate: true`) rather than holding the money twice.
628
647
  */
629
648
  bookHotel(params: {
630
649
  sessionId: string;
631
650
  hotelCode: number;
632
651
  combinationIdV2: string;
652
+ /** The offer's `price`, verbatim. */
633
653
  expectedPrice: number;
634
- expectedBalance: number;
654
+ /** The offer's `expected_cost` (the supplier's cost, PLN), verbatim. */
655
+ expectedCost: number;
656
+ /** The offer's `currency`. Copy it — omitted means PLN. */
657
+ currency?: string;
658
+ /** The offer's `fx_rate` (null for a PLN offer). */
659
+ fxRate?: number | null;
635
660
  cityId: number;
636
661
  cityName: string;
637
662
  checkIn: string;
638
663
  checkOut: string;
664
+ /**
665
+ * ONE entry per guest in the room, children included: adults first, then children in the
666
+ * `childAges` order used to search (the party travels with the offer's session). The hotel
667
+ * requires a name for every guest; fewer names than guests is refused before anything is
668
+ * submitted, and the hold is released.
669
+ */
639
670
  guests: Array<{
640
671
  title: string;
641
672
  first_name: string;
642
673
  last_name: string;
643
674
  }>;
644
- /** The voucher and the pay link go here. A typo loses the booking. */
675
+ /** The guest's e-mail: the confirmation, or a note that it did not go through, goes here. */
645
676
  email: string;
646
677
  phone: string;
678
+ /** Adults in the room, as searched. */
647
679
  adults?: number;
648
680
  combinationId?: number;
649
681
  hotelName?: string;
650
682
  phoneCountryCode?: string;
651
683
  specialRequests?: string[];
684
+ /** Optional. A retry with the same key returns the booking already under way. */
685
+ idempotencyKey?: string;
652
686
  }): Promise<Record<string, unknown>>;
653
687
  /**
654
688
  * Collect the result of a booking started with bookHotel().
655
689
  *
656
- * `status` is 'in_progress', 'succeeded' or 'failed'. On success you get
657
- * `confirmation`, `reservation_fee_charged`, `pay_link`, `balance_due`,
658
- * `balance_due_by` and `terms` (including the full cancellation ladder).
690
+ * `status` is 'in_progress', 'succeeded', 'failed' or 'attention'; the last
691
+ * three are final (HOTEL_BOOKING_FINAL_STATUSES).
692
+ *
693
+ * - succeeded: `confirmation`, `booking_id`, `hotel`, `room`, `total_price` +
694
+ * `currency` (what the guest is charged), `supplier_paid` +
695
+ * `supplier_currency` (what the supplier was paid), `payment_status`,
696
+ * `refundable`, `free_cancellation_until`, `cancellation_ladder`, `terms`.
697
+ * - failed: `error`, written for the guest. The hold has been released and
698
+ * nothing was charged.
699
+ * - attention: `error` (and `confirmation` when known). The outcome could not
700
+ * be settled automatically; the hold is kept — nothing is charged — while a
701
+ * person checks with the supplier. Do not book again.
702
+ *
703
+ * The guest is e-mailed in every case.
659
704
  */
660
705
  hotelBooking(bookingJobId: string): Promise<Record<string, unknown>>;
661
706
  /**
662
707
  * bookHotel(), then poll until the booking settles. Convenience only.
663
708
  *
664
- * Giving up after `maxWaitMs` does NOT cancel anything — the booking may
665
- * still complete. The returned object carries `booking_job_id` so you can
666
- * keep polling, and the confirmation is emailed to the guest regardless.
709
+ * Stops at 'succeeded', 'failed' or 'attention' and never re-books. Giving up
710
+ * after `maxWaitMs` (default 30 minutes: a booking usually takes 5-10, and
711
+ * hotel bookings run one at a time) does NOT cancel anything — the booking may
712
+ * still complete. The returned object carries `booking_job_id` so you can keep
713
+ * polling, and the guest is e-mailed the outcome regardless.
667
714
  */
668
715
  bookHotelAndWait(params: Parameters<LetsFG['bookHotel']>[0] & {
669
716
  pollIntervalMs?: number;
670
717
  maxWaitMs?: number;
671
718
  }): Promise<Record<string, unknown>>;
672
719
  /**
673
- * Release a reservation at the supplier.
720
+ * Release a reservation at the supplier and refund the guest.
674
721
  *
675
- * Free until `balance_due_by`; after that the hotel's own cancellation ladder
676
- * applies and can reach 100%. The ladder ships in the booking's `terms`, so
677
- * you can see the cost before calling this. The 5% reservation fee is NOT
678
- * refunded.
722
+ * Only this account's own bookings can be cancelled (anything else is 404). A
723
+ * zero-charge cancellation — a refundable rate before its
724
+ * `free_cancellation_until` — refunds the charge in full, or releases a hold
725
+ * not yet captured. A cancellation that would cost money is refused with 409;
726
+ * the hotel's own ladder is in the booking's `terms`.
679
727
  *
680
728
  * This drives a browser at the supplier and takes over a minute. If it times
681
729
  * out, do not assume it failed — re-check before retrying.
@@ -730,4 +778,4 @@ declare const BoostedTravel: typeof LetsFG;
730
778
  declare const BoostedTravelError: typeof LetsFGError;
731
779
  type BoostedTravelConfig = LetsFGConfig;
732
780
 
733
- export { AuthenticationError, type BookingResult, BoostedTravel, type BoostedTravelConfig, BoostedTravelError, ErrorCategory, type ErrorCategoryType, ErrorCode, type ErrorCodeType, type FlightOffer, type FlightRoute, type FlightSearchResult, type FlightSegment, LetsFG, type LetsFGConfig, LetsFGError, type OfferDetailSignals, OfferExpiredError, type Passenger, PaymentRequiredError, type RankOffer, type RankedOffer, type RankingContext, type ScoreBreakdown, type SearchOptions, type StarlinkOfferVerdict, type StarlinkSegmentVerdict, TRIP_PURPOSES, type TripPurpose, type TripPurposeOptions, type UnlockResult, ValidationError, cheapestOffer, deduplicateOffers, LetsFG as default, extractOfferDetailSignals, getOfferDetailBadges, getOfferDetailPromptNotes, getPrimaryTripPurpose, getProfileLabel, normalizeTripPurposes, offerSummary, rankOffers, selectDiverseTop };
781
+ export { AuthenticationError, type BookingResult, BoostedTravel, type BoostedTravelConfig, BoostedTravelError, ErrorCategory, type ErrorCategoryType, ErrorCode, type ErrorCodeType, type FlightOffer, type FlightRoute, type FlightSearchResult, type FlightSegment, HOTEL_BOOKING_FINAL_STATUSES, type HotelBookingStatus, LetsFG, type LetsFGConfig, LetsFGError, type OfferDetailSignals, OfferExpiredError, type Passenger, PaymentRequiredError, type RankOffer, type RankedOffer, type RankingContext, type ScoreBreakdown, type SearchOptions, type StarlinkOfferVerdict, type StarlinkSegmentVerdict, TRIP_PURPOSES, type TripPurpose, type TripPurposeOptions, type UnlockResult, ValidationError, cheapestOffer, deduplicateOffers, LetsFG as default, extractOfferDetailSignals, getOfferDetailBadges, getOfferDetailPromptNotes, getPrimaryTripPurpose, getProfileLabel, normalizeTripPurposes, offerSummary, rankOffers, selectDiverseTop };
package/dist/index.d.ts CHANGED
@@ -283,7 +283,7 @@ declare function getOfferDetailPromptNotes(offer: OfferDetailLike): string[];
283
283
  * const flights = await bt.search('GDN', 'BER', '2026-03-03');
284
284
  *
285
285
  * // Developer API (look-to-book search: 200 free after every booking)
286
- * const bt2 = new LetsFG({ apiKey: 'letsfg_...' });
286
+ * const bt2 = new LetsFG({ apiKey: process.env.LETSFG_API_KEY });
287
287
  * const flights2 = await bt2.search('LHR', 'JFK', '2026-04-15');
288
288
  * ```
289
289
  */
@@ -458,6 +458,12 @@ declare class ValidationError extends LetsFGError {
458
458
  declare function offerSummary(offer: FlightOffer): string;
459
459
  /** Get cheapest offer from search results */
460
460
  declare function cheapestOffer(result: FlightSearchResult): FlightOffer | null;
461
+ /**
462
+ * Every hotel booking job status after which polling is pointless. `attention` is
463
+ * final for the caller too: a person settles it, and booking again would book twice.
464
+ */
465
+ declare const HOTEL_BOOKING_FINAL_STATUSES: readonly ["succeeded", "failed", "attention"];
466
+ type HotelBookingStatus = 'in_progress' | (typeof HOTEL_BOOKING_FINAL_STATUSES)[number];
461
467
  declare class LetsFG {
462
468
  private bearerToken;
463
469
  private apiKey;
@@ -587,12 +593,17 @@ declare class LetsFG {
587
593
  * Slow by nature — the supplier streams a whole city and every rate is priced
588
594
  * — so this gets its own generous timeout rather than the client default.
589
595
  *
590
- * Each offer carries `price` (what the guest pays), `reservation_fee_now`
591
- * (the 5% taken at booking), `balance_to_supplier`, `balance_due_by` and
592
- * `free_cancellation_until`. There is no wholesale figure to quote by mistake.
596
+ * The response carries `session_id`, `currency`, `supplier_currency`,
597
+ * `markup_rate`, `fx_rate`, `fx_as_of`, `count`, `hotels`, `terms` and
598
+ * `caveats`. Each offer carries `price` (what the guest pays, in `currency`),
599
+ * `currency`, `fx_rate`, `expected_cost` (the supplier's cost, in PLN),
600
+ * `refundable`, `free_cancellation_until` (refundable rates only),
601
+ * `cancellation_policy` and its own `session_id`.
593
602
  *
594
- * Keep `session_id` and the chosen offer's `combination_id_v2`: together they
595
- * identify the exact rate, and booking needs both.
603
+ * `price` is the supplier's cost plus `markup_rate` (6.4% for Revolut Pay or an
604
+ * EEA-issued card, 8.3% for a card issued outside the EEA); nothing is added at
605
+ * booking. Keep the chosen offer whole: bookHotel() needs its `session_id`,
606
+ * `combination_id_v2`, `price`, `expected_cost`, `currency` and `fx_rate`.
596
607
  */
597
608
  searchHotels(params: {
598
609
  cityId: number;
@@ -606,76 +617,113 @@ declare class LetsFG {
606
617
  nationality?: string;
607
618
  limit?: number;
608
619
  withImages?: boolean;
620
+ /** ISO code every `price` is quoted in. Default USD; PLN is the supplier's own. */
621
+ currency?: string;
609
622
  }): Promise<Record<string, unknown>>;
610
623
  /**
611
624
  * Start a booking. Returns a job immediately — it does NOT book inline.
612
625
  *
613
- * A booking takes minutes: the rate is re-blocked at the supplier, every
614
- * price and date rail is checked, the 5% reservation fee is charged to your
615
- * card, and only then is the room committed. No proxy holds a connection that
616
- * long, so this returns at once and you poll hotelBooking() for the outcome.
617
- * Use bookHotelAndWait() if you would rather block.
626
+ * What happens, in order: the offer's full `price` is HELD on the Revolut
627
+ * payment method connected to this account (authorised, not taken); LetsFG
628
+ * books the room with the supplier and pays the supplier itself; the hold is
629
+ * captured only once the supplier has confirmed. If the booking fails for any
630
+ * reason, the hold is released and nothing is charged. There is no
631
+ * reservation fee, no deposit and no pay link.
618
632
  *
619
- * Because the fee is taken BEFORE the commit, a declined card costs nothing
620
- * to unwind: no reservation exists and nothing is charged.
633
+ * A booking takes minutes and no proxy holds a connection that long, so this
634
+ * returns at once and you poll hotelBooking() for the outcome. Use
635
+ * bookHotelAndWait() if you would rather block.
621
636
  *
622
- * Send `expectedPrice` and `expectedBalance` back exactly as search returned
623
- * them — the booking is refused if the supplier has moved beyond tolerance,
624
- * so a guest is never charged a price they did not agree to.
637
+ * Send `expectedPrice` (the offer's `price`), `expectedCost`, `currency` and
638
+ * `fxRate` exactly as search returned them. The booking is refused if the
639
+ * supplier's live cost is above `expectedCost`, and a USD offer sent without
640
+ * its `currency` is refused with 400 price_mismatch (the API assumes PLN).
641
+ * Guest names, phone and e-mail are checked before anything is held; a problem
642
+ * returns 400 invalid_details naming the fields.
625
643
  *
626
- * Do NOT call this again for the same rate while a job is running: that books
627
- * the room twice and charges two reservation fees.
644
+ * Do NOT call this again for a booking whose job is still running: poll it.
645
+ * A retry of the same booking returns the job already under way
646
+ * (`duplicate: true`) rather than holding the money twice.
628
647
  */
629
648
  bookHotel(params: {
630
649
  sessionId: string;
631
650
  hotelCode: number;
632
651
  combinationIdV2: string;
652
+ /** The offer's `price`, verbatim. */
633
653
  expectedPrice: number;
634
- expectedBalance: number;
654
+ /** The offer's `expected_cost` (the supplier's cost, PLN), verbatim. */
655
+ expectedCost: number;
656
+ /** The offer's `currency`. Copy it — omitted means PLN. */
657
+ currency?: string;
658
+ /** The offer's `fx_rate` (null for a PLN offer). */
659
+ fxRate?: number | null;
635
660
  cityId: number;
636
661
  cityName: string;
637
662
  checkIn: string;
638
663
  checkOut: string;
664
+ /**
665
+ * ONE entry per guest in the room, children included: adults first, then children in the
666
+ * `childAges` order used to search (the party travels with the offer's session). The hotel
667
+ * requires a name for every guest; fewer names than guests is refused before anything is
668
+ * submitted, and the hold is released.
669
+ */
639
670
  guests: Array<{
640
671
  title: string;
641
672
  first_name: string;
642
673
  last_name: string;
643
674
  }>;
644
- /** The voucher and the pay link go here. A typo loses the booking. */
675
+ /** The guest's e-mail: the confirmation, or a note that it did not go through, goes here. */
645
676
  email: string;
646
677
  phone: string;
678
+ /** Adults in the room, as searched. */
647
679
  adults?: number;
648
680
  combinationId?: number;
649
681
  hotelName?: string;
650
682
  phoneCountryCode?: string;
651
683
  specialRequests?: string[];
684
+ /** Optional. A retry with the same key returns the booking already under way. */
685
+ idempotencyKey?: string;
652
686
  }): Promise<Record<string, unknown>>;
653
687
  /**
654
688
  * Collect the result of a booking started with bookHotel().
655
689
  *
656
- * `status` is 'in_progress', 'succeeded' or 'failed'. On success you get
657
- * `confirmation`, `reservation_fee_charged`, `pay_link`, `balance_due`,
658
- * `balance_due_by` and `terms` (including the full cancellation ladder).
690
+ * `status` is 'in_progress', 'succeeded', 'failed' or 'attention'; the last
691
+ * three are final (HOTEL_BOOKING_FINAL_STATUSES).
692
+ *
693
+ * - succeeded: `confirmation`, `booking_id`, `hotel`, `room`, `total_price` +
694
+ * `currency` (what the guest is charged), `supplier_paid` +
695
+ * `supplier_currency` (what the supplier was paid), `payment_status`,
696
+ * `refundable`, `free_cancellation_until`, `cancellation_ladder`, `terms`.
697
+ * - failed: `error`, written for the guest. The hold has been released and
698
+ * nothing was charged.
699
+ * - attention: `error` (and `confirmation` when known). The outcome could not
700
+ * be settled automatically; the hold is kept — nothing is charged — while a
701
+ * person checks with the supplier. Do not book again.
702
+ *
703
+ * The guest is e-mailed in every case.
659
704
  */
660
705
  hotelBooking(bookingJobId: string): Promise<Record<string, unknown>>;
661
706
  /**
662
707
  * bookHotel(), then poll until the booking settles. Convenience only.
663
708
  *
664
- * Giving up after `maxWaitMs` does NOT cancel anything — the booking may
665
- * still complete. The returned object carries `booking_job_id` so you can
666
- * keep polling, and the confirmation is emailed to the guest regardless.
709
+ * Stops at 'succeeded', 'failed' or 'attention' and never re-books. Giving up
710
+ * after `maxWaitMs` (default 30 minutes: a booking usually takes 5-10, and
711
+ * hotel bookings run one at a time) does NOT cancel anything — the booking may
712
+ * still complete. The returned object carries `booking_job_id` so you can keep
713
+ * polling, and the guest is e-mailed the outcome regardless.
667
714
  */
668
715
  bookHotelAndWait(params: Parameters<LetsFG['bookHotel']>[0] & {
669
716
  pollIntervalMs?: number;
670
717
  maxWaitMs?: number;
671
718
  }): Promise<Record<string, unknown>>;
672
719
  /**
673
- * Release a reservation at the supplier.
720
+ * Release a reservation at the supplier and refund the guest.
674
721
  *
675
- * Free until `balance_due_by`; after that the hotel's own cancellation ladder
676
- * applies and can reach 100%. The ladder ships in the booking's `terms`, so
677
- * you can see the cost before calling this. The 5% reservation fee is NOT
678
- * refunded.
722
+ * Only this account's own bookings can be cancelled (anything else is 404). A
723
+ * zero-charge cancellation — a refundable rate before its
724
+ * `free_cancellation_until` — refunds the charge in full, or releases a hold
725
+ * not yet captured. A cancellation that would cost money is refused with 409;
726
+ * the hotel's own ladder is in the booking's `terms`.
679
727
  *
680
728
  * This drives a browser at the supplier and takes over a minute. If it times
681
729
  * out, do not assume it failed — re-check before retrying.
@@ -730,4 +778,4 @@ declare const BoostedTravel: typeof LetsFG;
730
778
  declare const BoostedTravelError: typeof LetsFGError;
731
779
  type BoostedTravelConfig = LetsFGConfig;
732
780
 
733
- export { AuthenticationError, type BookingResult, BoostedTravel, type BoostedTravelConfig, BoostedTravelError, ErrorCategory, type ErrorCategoryType, ErrorCode, type ErrorCodeType, type FlightOffer, type FlightRoute, type FlightSearchResult, type FlightSegment, LetsFG, type LetsFGConfig, LetsFGError, type OfferDetailSignals, OfferExpiredError, type Passenger, PaymentRequiredError, type RankOffer, type RankedOffer, type RankingContext, type ScoreBreakdown, type SearchOptions, type StarlinkOfferVerdict, type StarlinkSegmentVerdict, TRIP_PURPOSES, type TripPurpose, type TripPurposeOptions, type UnlockResult, ValidationError, cheapestOffer, deduplicateOffers, LetsFG as default, extractOfferDetailSignals, getOfferDetailBadges, getOfferDetailPromptNotes, getPrimaryTripPurpose, getProfileLabel, normalizeTripPurposes, offerSummary, rankOffers, selectDiverseTop };
781
+ export { AuthenticationError, type BookingResult, BoostedTravel, type BoostedTravelConfig, BoostedTravelError, ErrorCategory, type ErrorCategoryType, ErrorCode, type ErrorCodeType, type FlightOffer, type FlightRoute, type FlightSearchResult, type FlightSegment, HOTEL_BOOKING_FINAL_STATUSES, type HotelBookingStatus, LetsFG, type LetsFGConfig, LetsFGError, type OfferDetailSignals, OfferExpiredError, type Passenger, PaymentRequiredError, type RankOffer, type RankedOffer, type RankingContext, type ScoreBreakdown, type SearchOptions, type StarlinkOfferVerdict, type StarlinkSegmentVerdict, TRIP_PURPOSES, type TripPurpose, type TripPurposeOptions, type UnlockResult, ValidationError, cheapestOffer, deduplicateOffers, LetsFG as default, extractOfferDetailSignals, getOfferDetailBadges, getOfferDetailPromptNotes, getPrimaryTripPurpose, getProfileLabel, normalizeTripPurposes, offerSummary, rankOffers, selectDiverseTop };