import { ReactNode } from "react"; //#region ../react-form/src/hooks/useFormState.d.ts type FormState = { /** Whether the form currently has no invalid controls. */isValid: boolean; /** Whether any control has been changed from its initial value. */ isDirty: boolean; /** Whether the form is mid-submit. */ isSubmitting: boolean; /** Whether the form has attempted submission at least once. */ isSubmitted: boolean; /** Whether any control has an async validation in flight. */ isValidating: boolean; /** Form-level errors with no owning control (whole-form schema). */ formErrors: ReactNode[]; }; /** * One-stop reactive snapshot of form-level state — `isValid`, `isDirty`, * `isSubmitting`, `isSubmitted`, `isValidating`, and `formErrors` — for any * descendant of a `Form` / `NativeForm`. * * ```tsx * const { isValid, isSubmitting, isDirty } = useFormState(); * * ``` */ declare function useFormState(): FormState; //#endregion export { FormState, useFormState }; //# sourceMappingURL=useFormState.d.mts.map