import { SubmissionEventTypes } from '@oneblink/types'; import { FormSubmissionResult } from '../../types/submissions'; import { SchedulingUrlConfiguration } from '../../types/scheduling'; declare function generateSchedulingConfiguration({ formSubmissionResult, schedulingSubmissionEvent, schedulingUrlConfiguration: { schedulingCancelUrl, schedulingRescheduleUrl }, }: { formSubmissionResult: FormSubmissionResult; schedulingSubmissionEvent: SubmissionEventTypes.FormSchedulingEvent; schedulingUrlConfiguration: SchedulingUrlConfiguration; }): Promise; /** * Create a Nylas Session * * #### Example * * ```js * const { sessionId, configurationId, bookingRef, name, email } = * await schedulingService.createNylasExistingBookingSession( * '89c6e98e-f56f-45fc-84fe-c4fc62331d34', * ) * // use sessionId and configurationId/bookingRef to create or modify nylas bookings * ``` * * @param submissionId * @param abortSignal * @returns */ declare function createNylasExistingBookingSession(submissionId: string, abortSignal: AbortSignal): Promise<{ /** The identifier to allow the user to make a booking */ sessionId: string; /** The identifier for the configuration the user will make a booking with */ configurationId: string; /** The name of the current user to prefill into the booking form */ name: string | undefined; /** The email address of the current user to prefill into the booking form */ email: string | undefined; /** The unique reference for an existing booking to reschedule or cancel */ bookingRef: string | undefined; }>; export { generateSchedulingConfiguration, createNylasExistingBookingSession };