import { default as React } from 'react';
export declare function submitContactForm({ formId, portalId }: {
    formId: string;
    portalId: string;
}, fields: Record<string, string>, context: Record<string, string>): Promise<any>;
export interface ContactFormProps extends React.HTMLAttributes<HTMLFormElement> {
    className?: string;
    portalId?: string;
    formId?: string;
    title?: string;
    button?: string;
    successMessage?: string;
    layout?: 'horizontal' | 'vertical';
    fields?: string | string[];
}
export default class ContactForm extends React.Component<ContactFormProps, {
    loading: boolean;
    errorMessage: string;
    successMessage: string;
    [x: string]: string | boolean;
}> {
    static defaultProps: {
        className: string;
        portalId: string;
        formId: string;
        title: undefined;
        button: string;
        layout: "vertical";
        successMessage: string;
        fields: string[];
    };
    fields: string[];
    constructor(props: ContactFormProps);
    deriveProps(): Record<string, any>;
    render(): import("react/jsx-runtime").JSX.Element;
    onSubmit: (e: React.FormEvent<HTMLFormElement>) => Promise<void>;
    getInputHandler: (name: string, state?: {}) => (e: React.ChangeEvent<HTMLInputElement>) => void;
}
