import type { ReactNode } from 'react'; import { type PublicForm } from './forms.js'; export interface PrentaFormProps { /** Form slug to fetch (ignored when `form` is provided). */ slug?: string; /** A pre-fetched public form schema. Skips the network fetch when set. */ form?: PublicForm; /** * Origin of the CMS API, e.g. `https://cms.example.com`. Defaults to `''` * (same-origin relative URLs), which is correct for a Next.js app that mounts * the Prenta API at `/api/cms`. */ baseUrl?: string; /** Optional captcha token, when the form requires one (consumer-supplied). */ captchaToken?: string; /** Extra class names for the form wrapper. */ className?: string; /** Called with the API result after a successful submission. */ onSubmitted?: (result: unknown) => void; } export declare function PrentaForm({ slug, form: initialForm, baseUrl, captchaToken, className, onSubmitted, }: PrentaFormProps): ReactNode; //# sourceMappingURL=PrentaForm.d.ts.map