import * as React from 'react'; interface FormConfig { [key: string]: any; } interface FormErrors { [key: string]: string | null; } interface FormFields { [key: string]: string | null; } interface FormModel { errors: FormErrors; fields: FormFields; register: (config: FormConfig, initialValues: FormFields) => void; resetAll: () => void; setField: () => void; submit: () => void; submitted: boolean; unregister: (FormFieldModel: any) => void; } declare const FormConsumer: React.ExoticComponent>; declare const FormProvider: React.ProviderExoticComponent>; declare const withFormContext:

>(TargetComponent: React.ComponentClass | React.FunctionComponent

) => { (props: P): JSX.Element; displayName: string; }; export { FormConfig, FormConsumer, FormErrors, FormFields, FormModel, FormProvider, withFormContext };