import { FormErrors, FormValues } from '../components/Form/types.js'; import { Path } from '@saulx/utils'; export type UseFormProps = { initialValues?: FormValues; initialValuesChecksum?: number; onSubmit?: (values: FormValues, entityType?: string) => void | Promise; onChange?: (values: FormValues) => void | Promise; validate?: (values: FormValues, entityType?: string) => FormErrors | Promise; onSubmitError?: (error?: any, entityType?: string) => void; disabled?: boolean; }; export declare function useForm({ initialValues, initialValuesChecksum, onSubmit, onChange, validate, onSubmitError, disabled, }: UseFormProps): { values: FormValues; errors: FormErrors; isSubmitting: boolean; isValidating: boolean; isDirty: boolean; isDisabledFromOutside: boolean; setValue: (path: Path, value: string | boolean | number | string[] | (string | boolean | number)[]) => void; submitForm: (entityType?: string) => Promise; validateForm: (entityType?: string) => Promise; resetForm: () => void; };