import * as React from 'react'; import { ComponentType } from 'react'; import { FormField } from './field'; import { FormFieldArray } from './field-array'; export interface FormController { handleSubmit: (values: any) => void; field: (key: string, options?: { value: any; }) => FormField; array: (key: string, options?: { values: any[]; }) => FormFieldArray; submitting: boolean; } export interface FormProps { defaultValue?: any; onSubmit?: (value: any) => any; } export declare function form(FormComponent: ComponentType): React.ComponentClass;