import type { ContactErrorCode, ContactField } from '../types'; type MessageKey = ContactErrorCode | 'default'; export interface ContactMessages { submit: string; sending: string; successTitle: string; successMessage: string; errors: Record; } export interface ContactClassNames { form: string; field: string; label: string; required: string; input: string; textarea: string; select: string; button: string; honeypot: string; alert: string; alertError: string; alertSuccess: string; } export interface ContactFormProps { /** API route the form POSTs to (e.g. `/api/contact`). */ action: string; /** Field schema — should mirror the server route's fields. */ fields: ReadonlyArray; /** Cloudflare Turnstile site key. Omit to render without a captcha. */ turnstileSiteKey?: string; turnstileAppearance?: 'always' | 'execute' | 'interaction-only'; /** Locale sent with the submission + used as the Turnstile language. */ locale?: string; /** Copy overrides (English defaults). */ messages?: Partial> & { errors?: Partial>; }; /** Class name overrides — map to your design system (e.g. `ds-input`). */ classNames?: Partial; /** Extra hidden values merged into the payload (e.g. a source tag). */ hiddenValues?: Record; onSuccess?: () => void; onError?: (code: MessageKey) => void; className?: string; } export declare function ContactForm({ action, fields, turnstileSiteKey, turnstileAppearance, locale, messages, classNames, hiddenValues, onSuccess, onError, className, }: ContactFormProps): import("react").JSX.Element; export {}; //# sourceMappingURL=ContactForm.d.ts.map