import * as React from 'react'; export declare type FormProps = React.PropsWithChildren<{ onSubmit: () => boolean | Promise; ref?: React.RefObject; }>; export declare type FormActions = { focusFirstInvalidField: () => void; }; export declare const Form: React.ForwardRefExoticComponent & React.RefAttributes>; export declare type FormContextValue = { refs?: FormRef[]; submitForm: () => Promise; focusField?: (nextField?: Partial | undefined) => void; }; export declare type FormRef = { ref: React.RefObject; hasFocusCallback: boolean; id: string | undefined; hasValidation: boolean; hasError?: boolean; isEditable?: boolean; }; export declare const FormContext: React.Context; export declare const useForm: () => FormContextValue;