export type FormContextValue = { submitting: boolean; /** Increases after each successful submit; fields clear their value when it changes. */ resetVersion: number; /** False on the server and the first render; submit buttons stay disabled until the form has mounted. */ ready: boolean; }; export declare const FormContext: import('react').Context; /** `undefined` outside a form: fields still render and keep their own value. */ export declare const useFormContext: () => FormContextValue | undefined;