import * as React from 'react'; declare type NetlifyFormAs = "name" | "email" | "phone" | "address" | "select" | "checkbox" | "single" | "message" | "radio" | "hidden" | "file"; /** * Netlify Form Builder Utility */ 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; } declare const NetlifyForm: ({ title, fields, config, onSubmit }: NetlifyFormProps) => JSX.Element; export { NetlifyForm, NetlifyFormProps };