/** * @adamarant/contact-form/server — server-only entry. * * No `process.env` access anywhere in here: the consuming app reads env vars * and passes them in as config. Safe to import in a Next.js route handler. */ export { createContactRoute, type ContactRouteConfig, type ContactRouteHandler, type ContactRouteResendConfig, type ContactRouteTurnstileConfig, type ContactRouteHoneypotConfig, type ContactSubmissionContext, } from './create-route' // Lower-level primitives, exported so apps can compose their own handlers // (Server Actions, custom flows) without re-implementing the security layer. export { getClientIp } from './ip' export { validateHoneypot, type HoneypotPayload, type HoneypotValidatorOptions, type HoneypotResult, type HoneypotFailureReason, } from './honeypot' export { verifyTurnstileToken, type TurnstileVerifyOptions, type TurnstileVerifyResult, } from './turnstile' export { createRateLimiter, type RateLimiter, type RateLimitConfig, type RateLimitRedisConfig, type RateLimitResult, } from './rate-limit' export { validateContact, type ValidationResult } from './validate' export { sendContactEmail, type SendContactEmailConfig, type SendResult } from './send' export { HONEYPOT_FIELD_NAMES, TURNSTILE_TOKEN_FIELD } from '../constants' export type { ContactField, ContactData, FieldType, ContactErrorCode, ContactResponse, } from '../types'