import { FormState, FieldState, SetFieldValueOptions, ValidationSchema, FormHandlerOptions, ValidateOptions, ValidateFieldOptions, ErrorMap, SetFieldDefaultValueOptions, FieldPath } from '../../interfaces'; /** * Creates a reactive formHandler object that simplifies forms manipulation. * It uses as parameter a validation schema. */ export declare const useFormHandler: (validationSchema: ValidationSchema, options?: FormHandlerOptions) => { addFieldset: (options?: { basePath?: string; }) => Promise; fillForm: (data: T, options?: { silentValidation?: boolean; }) => Promise; fieldHasError: (path?: string) => boolean; formHasChanges: () => boolean; formIsFilling: import("solid-js").Accessor; formIsResetting: import("solid-js").Accessor; formIsValidating: import("solid-js").Accessor; getFieldError: (path?: string) => string; getFieldDefaultValue: (path?: string) => any; getFieldValue: (path?: string, mapValue?: (value: any) => any) => any; formData: () => T; getFormErrors: () => ErrorMap; isFieldInvalid: (path: string) => boolean; isFieldValidating: (path?: string) => boolean | undefined; isFormInvalid: () => boolean; moveFieldset: (oldIndex?: number, newIndex?: number, basePath?: string) => void; n: (name: Exclude, "">) => string; name: (name: Exclude, "">) => string; removeFieldset: (index: number, basePath?: string) => void; resetForm: () => Promise; setFieldTriggers: (path?: string, paths?: string[]) => Promise; setFieldValue: (path: string | undefined, value: any, options?: SetFieldValueOptions) => Promise; setFieldDefaultValue: (path: string | undefined, defaultValue: any, options?: SetFieldDefaultValueOptions) => Promise; touchField: (path?: string) => void; validateField: (path?: string, options?: ValidateFieldOptions) => Promise; validateForm: (options?: ValidateOptions) => Promise<{ isFormInvalid: boolean; }>; _: { addFieldsetState: (basePath: string, defaultData: any) => void; buildFieldState: (statePath: string, options?: { reset?: boolean; fill?: boolean; }) => { isFieldset: boolean; dataType: string; isInvalid: true; errorMessage: string; currentValue: undefined; defaultValue: any; initialValue: any; touched: boolean; dirty: boolean; triggers: string[] | undefined; validating: boolean; htmlElement?: HTMLElement | undefined; validationId?: string | undefined; }; dirtyField: (path: string) => void; generateFormState: (options?: { reset?: boolean; fill?: boolean; silentValidation?: boolean; }) => Promise; getFieldState: (path?: string) => FieldState | undefined; getFormState: () => FormState; hasEventTypes: (eventTypes?: string[]) => boolean; moveFieldsetState: (oldIndex?: number, newIndex?: number, basePath?: string) => void; parseValue: (path: string, value: any) => any; removeFieldsetState: (index: number, basePath?: string) => void; setFieldData: (path: string | undefined, value: any, options?: { mapValue?: ((value: any) => any) | undefined; } | undefined) => void; setFieldState: (path: string | undefined, value: Partial | ((prev: FieldState) => FieldState)) => void; setFieldChildren: (path: string | undefined, value: FormState[] | ((items: FormState[]) => FormState[])) => void; }; };