import { Theme } from '@mui/material/styles';
import { default as React } from 'react';

export interface CmfFormProps {
    /**
     * The URL of the API used to support this form.
     * This API acts as a proxy between your backend and CM&F,
     * and the proxy will handle authentication between the two
     * @example 'https://cmf-forms.yourcompany.com'
     */
    apiUrl: string;
    /**
     * Additional headers to append to backend requests made by the
     * CmfForm component.  This is useful for adding authentication headers.
     *
     * If your backend will authenticate requests using a Bearer token, an API
     * key header, or some other header-based auth scheme, you can provide the
     * necessary headers here.
     *
     * @example {
     *  Authorization: 'Bearer 1234'
     * }
     */
    headersToAppend: {
        [key: string]: string;
    };
    /**
     * The theme to use for the form.
     * Will default to a basic theme if not provided.
     */
    theme?: Theme;
}
/**
 * CM&F Form component
 * @param props Configuration properties for CmfForm
 * @returns A CM&F form component
 */
export declare const CmfForm: (props: CmfFormProps) => React.JSX.Element;
