/** * Create Booking API * Wrapper for the Wix Bookings createBooking SDK function */ import { type Booking, type CreateBookingResponse, type ParticipantNotification } from '@wix/auto_sdk_bookings_bookings'; import type { FormValues } from '@wix/forms/components'; /** * Options for creating a booking. `null` is accepted on optional fields so * callers can forward the SDK's `T | null` shape without coercion. */ export interface CreateBookingOptions { /** Notification settings for participants */ participantNotification?: ParticipantNotification; /** Whether to send SMS reminder */ sendSmsReminder?: boolean | null; /** Form submission data */ formSubmission?: FormValues | null; } /** * Creates a booking with the specified booking data and options * * @param booking - The booking data * @param options - Optional settings for notifications and form submission * @returns Promise resolving to the created booking response * * @example * ```typescript * const response = await createBooking( * { * selectedPaymentOption: 'ONLINE', * totalParticipants: 1, * bookedEntity: { slot: { ... } } * }, * { * participantNotification: { notifyParticipants: true }, * sendSmsReminder: true, * formSubmission: formValues * } * ); * ``` */ export declare function createBooking(booking: Booking, options?: CreateBookingOptions): Promise;