import { Client } from '../../Client'; import { CarsBooking } from '../CarsTypes'; import { Resource } from '../../Resource'; import { DuffelResponse } from '../../types'; export interface CarsBookingPayload { quote_id: string; driver: { given_name: string; family_name: string; email: string; phone_number: string; date_of_birth: string; user_id?: string; }; inbound_flight_number?: string; supplier_loyalty_programme_account_number?: string; payment?: { method: 'card'; card_id: string; }; metadata?: Record; users?: string[]; } export declare class Bookings extends Resource { /** * Endpoint path */ path: string; constructor(client: Client); /** * Create a booking from a quote * @param {object} payload - The booking payload, including quote id and driver information */ create: (payload: CarsBookingPayload) => Promise>; /** * Get a booking by ID * @param {string} bookingId - The ID of the booking */ get: (bookingId: string) => Promise>; /** * Cancel a booking * @param {string} bookingId - The ID of the booking to cancel */ cancel: (bookingId: string) => Promise>; }