/** * Builds the createBooking request from BookActionParams */ import { type CreateBookingRequest } from '@wix/auto_sdk_bookings_bookings'; import type { BookActionParams } from './types.js'; /** * Builds a CreateBookingRequest from the booking action parameters * * Maps ServiceSelection data to the Booking API's slot format: * - serviceId: from serviceSelection.service._id * - scheduleId: from serviceSelection.timeSlot.scheduleId * - startDate: from serviceSelection.timeSlot.startDate * - endDate: from serviceSelection.timeSlot.endDate * - timezone: from serviceSelection.timezone * - eventId: from serviceSelection.timeSlot.eventInfo.eventId (for classes) * - location: from location param * - resource: from serviceSelection.resources[0] * * @param params - The booking action parameters * @returns CreateBookingRequest ready to be sent to the API */ export declare function buildBookingRequest(params: BookActionParams): CreateBookingRequest;