import * as React from "react"; import { NetlifyFormAs } from "./types"; /** * Netlify Form Builder Utility */ export interface NetlifyFormProps { title?: string | React.FunctionComponent; fields: { as?: NetlifyFormAs; props?: { [key: string]: any; }; Component?: React.FunctionComponent<{ [key: string]: any; } | {}>; }[]; config: { name: string; thankYou?: React.ReactNode; thankYouPage?: string; consoleMessage?: boolean; submit?: string; postUrl?: string; keepDom?: boolean; encType?: "multipart/form-data" | "application/x-www-form-urlencoded"; testing?: boolean; }; onSubmit?: (data: { [key: string]: string; }) => void; } export declare const NetlifyForm: ({ title, fields, config, onSubmit }: NetlifyFormProps) => JSX.Element;