import * as PropTypes from "prop-types"; import { ModelValue, ModelError } from "../Model"; export interface FormContext { values: ModelValue[]; addError: (newError: ModelError) => void; getError: (attribute: string) => ModelError | undefined; onChange: (attribute: string, value: any) => any; onMount: (attribute: string, element: HTMLElement) => void; onUnmount: (attribute: string) => void; onReset: () => void; readonly validate: (group: string) => Promise; readonly getDOMElement: (attribute: string) => HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | void; isLoading: boolean; } export declare const FormContextTypes: { [P in keyof FormContext]: PropTypes.Validator; };