import * as React from 'react';
import { FormFieldConfig, PageSpeedFormConfig } from '@page-speed/forms/integration';
import { f as SectionBackground, g as SectionSpacing, t as PatternName } from './community-initiatives-Bi_ClKrO.js';
import { A as ActionConfig } from './blocks-k17uluAz.js';
import 'react/jsx-runtime';
import 'class-variance-authority';
import './button-variants-lRElsmTc.js';
import 'class-variance-authority/types';

interface ContactOption {
    /**
     * Icon name for the contact option
     */
    icon: string;
    /**
     * Contact information text
     */
    info: string;
    /**
     * Optional href for the contact option
     */
    href?: string;
}
interface ContactCardProps {
    /**
     * Main heading content
     */
    heading?: React.ReactNode;
    /**
     * Description text below the heading
     */
    description?: React.ReactNode;
    /**
     * Form card heading
     */
    formHeading?: React.ReactNode;
    /**
     * Submit button text
     */
    buttonText?: string;
    /**
     * Submit button icon (displayed before text)
     */
    buttonIcon?: React.ReactNode;
    /**
     * Array of action configurations for additional buttons
     */
    actions?: ActionConfig[];
    /**
     * Custom slot for rendering actions (overrides actions array and default submit)
     */
    actionsSlot?: React.ReactNode;
    /**
     * Contact options to display
     */
    contactOptions?: ContactOption[];
    /**
     * Custom slot for rendering contact options (overrides contactOptions array)
     */
    contactOptionsSlot?: React.ReactNode;
    /**
     * Array of form field configurations
     * If not provided, defaults to: firstName, lastName, email, message, privacyPolicy
     */
    formFields?: FormFieldConfig[];
    /**
     * Success message to display after form submission
     * @default "Thank you! We'll be in touch soon."
     */
    successMessage?: React.ReactNode;
    /**
     * Additional CSS classes for the section
     */
    className?: string;
    /**
     * Additional CSS classes for the container
     * @default "px-6 sm:px-6 md:px-8 lg:px-8"
     */
    containerClassName?: string;
    /**
     * Additional CSS classes for the card
     */
    cardClassName?: string;
    /**
     * Additional CSS classes for the form heading
     */
    formHeadingClassName?: string;
    /**
     * Additional CSS classes for the form
     */
    formClassName?: string;
    /**
     * Additional CSS classes for the submit button
     */
    submitClassName?: string;
    /**
     * Additional CSS classes for the success message
     */
    successMessageClassName?: string;
    /**
     * Additional CSS classes for the error message
     */
    errorMessageClassName?: string;
    /**
     * Additional CSS classes for the info panel
     */
    infoPanelClassName?: string;
    /**
     * Additional CSS classes for the heading
     */
    headingClassName?: string;
    /**
     * Additional CSS classes for the description
     */
    descriptionClassName?: string;
    /**
     * Additional CSS classes for the contact options container
     */
    contactOptionsClassName?: string;
    /**
     * Background style for the section
     */
    background?: SectionBackground;
    /**
     * Vertical spacing for the section
     * @default "py-8 md:py-32"
     */
    spacing?: SectionSpacing;
    /**
     * Optional background pattern name or URL
     */
    pattern?: PatternName | undefined;
    /**
     * Pattern overlay opacity (0-1)
     */
    patternOpacity?: number;
    /**
     * Optional form submission configuration.
     * See `FORMS_INTEGRATION_GUIDE.md` for complete examples.
     */
    formConfig?: PageSpeedFormConfig;
    /**
     * Optional custom submission handler for maximum flexibility.
     */
    onSubmit?: (values: Record<string, unknown>) => void | Promise<void>;
    /**
     * Optional success callback invoked after successful submission.
     */
    onSuccess?: (data: unknown) => void;
    /**
     * Optional error callback invoked if submission fails.
     */
    onError?: (error: Error) => void;
}
/**
 * ContactCard - A simple contact form with card layout and contact information sidebar.
 * Perfect for basic contact pages with multiple contact methods displayed.
 *
 * @example
 * ```tsx
 * <ContactCard
 *   heading="Get in Touch"
 *   description="Have questions? We'd love to hear from you."
 *   formHeading="Contact us"
 *   buttonText="Send Message"
 *   formConfig={{ endpoint: "/api/contact", format: "json" }}
 * />
 * ```
 */
declare function ContactCard({ heading, description, formHeading, buttonText, buttonIcon, actions, actionsSlot, contactOptions, contactOptionsSlot, formFields, successMessage, className, containerClassName, cardClassName, formHeadingClassName, formClassName, submitClassName, successMessageClassName, errorMessageClassName, infoPanelClassName, headingClassName, descriptionClassName, contactOptionsClassName, background, spacing, pattern, patternOpacity, formConfig, onSubmit, onSuccess, onError, }: ContactCardProps): React.JSX.Element;

export { ContactCard, type ContactCardProps };
