import React, { Component } from 'react'; import { BoxProps } from 'grommet'; import { IFormProps, IFormContext, IFormErrors, IFormFieldProps } from './FormProps'; export declare const FormContext: React.Context; interface IFormState { data: object; errors: IFormErrors; submitted: boolean; } /** * A Form with built-in validation. */ declare class Form extends Component { fields: { [x: string]: IFormFieldProps; }; static defaultProps: { focusFirstChild: boolean; onChange: any; onSubmit: any; onSubmitError: any; onInvalidForm: any; onValidForm: any; initialValues: {}; object: {}; tag: string; basis: string; }; containerRef: React.RefObject; constructor(props: any); validate: (data: object) => IFormErrors; static getDerivedStateFromProps(nextProps: any, prevState: any): { data: any; }; componentDidMount(): void; onSubmit: (event: any) => void; updateObject: (name: any, value: any, e: any) => void; attachToForm: (name: any, props: any) => void; detachFromForm: (name: any) => void; getFieldValue: (name: any) => any; getFieldErrors: (name: any) => string[]; render(): JSX.Element; } export { Form };