import { SubmissionEventTypes } from '@oneblink/types'; import { FormSubmissionResult, BaseNewFormSubmission } from '../types/submissions'; import { SchedulingUrlConfiguration } from '../types/scheduling'; type SchedulingSubmissionResult = { formSubmissionResult: FormSubmissionResult; paymentReceiptUrl: string | undefined; paymentFormUrl: string | undefined; preventPayment: boolean; }; export declare function getSchedulingSubmissionResult(): Promise; export declare function removeSchedulingSubmissionResult(): Promise; type SchedulingBooking = { /** The unique identifier for the submission associated with the booking */ submissionId: string; /** Date and time the booking starts */ startTime: Date; /** Date and time the booking ends */ endTime: Date; /** Location of booking */ location: string | undefined; /** `true` if the booking has been rescheduled, otherwise `false` */ isReschedule: boolean; }; export declare function getSchedulingBooking(submissionId: string | null): Promise; export declare function removeSchedulingBooking(submissionId: string): Promise; export declare function setSchedulingBooking(schedulingBooking: SchedulingBooking): Promise; declare function checkForSchedulingSubmissionEvent(baseFormSubmission: BaseNewFormSubmission): SubmissionEventTypes.FormSchedulingEvent | undefined; declare function handleSchedulingSubmissionEvent({ formSubmissionResult, schedulingSubmissionEvent, schedulingUrlConfiguration, paymentReceiptUrl, paymentFormUrl, preventPayment, }: { formSubmissionResult: FormSubmissionResult; schedulingSubmissionEvent: SubmissionEventTypes.FormSchedulingEvent; schedulingUrlConfiguration: SchedulingUrlConfiguration; paymentReceiptUrl: string | undefined; paymentFormUrl: string | undefined; preventPayment: boolean; }): Promise>; export { SchedulingBooking, checkForSchedulingSubmissionEvent, handleSchedulingSubmissionEvent, };