import * as React from 'react'; import { Components, Model } from '@singularsystems/neo-core'; interface IFormProps extends Omit, "children" | "onInvalid" | "autoFocus">, Components.IFormOptions { /** * Called when the form is submitted, but the model is not valid. * The firstSubmit parameter will be true if this is the first submit attempt for the model. */ onInvalid?: (e?: React.SubmitEvent, firstSubmit?: boolean) => void; children: React.ReactNode | ((item: T, meta: Model.TransformMetaType) => React.ReactNode); } export default class Form extends React.Component> { private reactionDisposer?; private formRef; private getModelOrModels; private onSubmit; /** Checks if the model is valid, waiting for any async rules to complete. Returns true if the model is valid. */ validateAsync(): Promise; private disposeReaction; componentDidMount(): void; componentWillUnmount(): void; render(): React.JSX.Element; } export {};