export interface SubmitContactFormInput { widget_instance_id?: number | null; name: unknown; email: unknown; phone?: unknown; subject?: unknown; message: unknown; /** Honeypot — a hidden field humans never see. */ website?: unknown; } export interface SubmitContactFormResult { uuid: string; status: 'unread' | 'spam'; /** * Whether the store notification went out. The storefront does NOT surface * this — a visitor should not be told about the store's mail configuration — * but the admin grid does. */ emailSent: boolean; } /** * Persist first, email second. * * The row is committed before any mail is attempted, so no delivery problem — * a missing email service, an unset store email, a dead SMTP host — can ever * destroy a visitor's message after the form has told them it was received. * The send outcome is written back to `email_sent` / `email_error` so a broken * setup is visible in the admin instead of silent. */ export declare function submitContactForm(data: SubmitContactFormInput): Promise;