import { Tickets } from './tickets.types'; import { RsvpForm, RsvpForm } from './rsvpform.types'; import { Rsvp } from './rsvp.types'; import { Form } from './form.types'; /** * **Deprecated:** Creates a new RSVP form for the specified event. * * **Deprecation note:** The `createEventRsvpForm()` function is being deprecated. Use * the [`getForm()`](#getForm) function instead. * * Use the `createEventRsvpForm()` function to retrieve the information * you need to [create a custom RSVP form](https://dev.wix.com/docs/velo/api-reference/wix-events-frontend/rsvp/introduction) * for a specified event and to submit the form data to register guests for the event. * * Retrieve event IDs to specify an event from the **Events/Events** collection. * > **Note:** The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality. * @param eventId - ID of the event to create an RSVP form for. * @requiredField eventId * @returns An RSVP form object. * @servicePath wix-events-frontend.RsvpForm */ export function createEventRsvpForm(eventId: string): Promise; /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [getForm()](https://dev.wix.com/docs/sdk/backend-modules/events/forms/get-form). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`getForm()`](https://dev.wix.com/docs/sdk/backend-modules/events/forms/get-form). * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `getForm()` method from the frontend with the `getForm()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * `getForm()` retrieves the information * to create a custom registration form * for a specified event. * * Retrieve event IDs from the **Events/Events** collection to specify which event's form to get. * > **Note:** The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality. * @param eventId - ID of the event to get a registration form for. * @requiredField eventId * @returns Fulfilled - A registration form object for the specified event. * @servicePath wix-events-frontend.Form */ export function getForm(eventId: string): Promise
;