import type { Form } from '@devvit/shared'; import type { FormEffectResponse, FormToFormValues } from './helpers/form-types.js'; /** * Opens a form in a modal. * Returns a promise that resolves with the form submission results. * The form can be submitted or canceled by the user. * * @param formDefinition - The form configuration * @returns A promise that resolves to either: * - An object with `action: FormAction.SUBMITTED` and the submitted form values * - An object with `action: FormAction.CANCELED` if the user canceled the form * @throws Will throw if the form fields are invalid */ export declare const showForm: (formDefinition: T) => Promise>>; //# sourceMappingURL=show-form.d.ts.map