import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Webflow from "../../../index"; export declare namespace Forms { interface Options extends BaseClientOptions { } interface RequestOptions extends BaseRequestOptions { } } /** * Forms are forms that are created on your Webflow site. */ export declare class Forms { protected readonly _options: Forms.Options; constructor(_options: Forms.Options); /** * List forms for a given site. * * Required scope | `forms:read` * * @param {string} siteId - Unique identifier for a Site * @param {Webflow.FormsListRequest} request * @param {Forms.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.ConflictError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.forms.list("580e63e98c9a982ac9b8b741", { * limit: 1, * offset: 1 * }) */ list(siteId: string, request?: Webflow.FormsListRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise; private __list; /** * Get information about a given form. * * Required scope | `forms:read` * * @param {string} formId - Unique identifier for a Form * @param {Forms.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.forms.get("580e63e98c9a982ac9b8b741") */ get(formId: string, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise; private __get; /** * List form submissions for a given form * * * When a form is used in a component definition, each instance of the form is considered a unique form. * * To get a combined list of submissions for a form that appears across multiple component instances, use the [List Form Submissions by Site](/data/reference/forms/form-submissions/list-submissions-by-site) endpoint. * * * Required scope | `forms:read` * * @param {string} formId - Unique identifier for a Form * @param {Webflow.FormsListSubmissionsRequest} request * @param {Forms.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.forms.listSubmissions("580e63e98c9a982ac9b8b741", { * offset: 1, * limit: 1 * }) */ listSubmissions(formId: string, request?: Webflow.FormsListSubmissionsRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise; private __listSubmissions; /** * Get information about a given form submissio. * * Required scope | `forms:read` * * @param {string} formSubmissionId - Unique identifier for a Form Submission * @param {Forms.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.forms.getSubmission("580e63e98c9a982ac9b8b741") */ getSubmission(formSubmissionId: string, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise; private __getSubmission; /** * Delete a form submission * * * Required scope | `forms:write` * * @param {string} formSubmissionId - Unique identifier for a Form Submission * @param {Forms.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.ConflictError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.forms.deleteSubmission("580e63e98c9a982ac9b8b741") */ deleteSubmission(formSubmissionId: string, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise; private __deleteSubmission; /** * Update hidden fields on a form submission * * Required scope | `forms:write` * * @param {string} formSubmissionId - Unique identifier for a Form Submission * @param {Webflow.FormsUpdateSubmissionRequest} request * @param {Forms.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.ForbiddenError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.ConflictError} * @throws {@link Webflow.TooManyRequestsError} * @throws {@link Webflow.InternalServerError} * * @example * await client.forms.updateSubmission("580e63e98c9a982ac9b8b741") */ updateSubmission(formSubmissionId: string, request?: Webflow.FormsUpdateSubmissionRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise; private __updateSubmission; protected _getAuthorizationHeader(): Promise; }