import { FormValidation } from '@connector/ui';
import { FormState, FormActionValue, FieldValue, FormFields, FormStateValues } from '../types/form';
import { default as React, Dispatch } from 'react';
interface FormHandlersProps {
    dispatch: Dispatch<FormActionValue>;
    state: FormState;
    validations: FormValidation;
    dynamicFields?: FormFields[];
}
export declare const useFormHandlers: ({ state, dispatch, validations, dynamicFields }: FormHandlersProps) => {
    setValue: (name: string, value?: FieldValue) => void;
    setFormDefaults: (values: FormStateValues) => void;
    isErrorInValidations: () => boolean;
    inputChangeHandler: (event: React.ChangeEvent<HTMLInputElement>) => void;
    checkboxChangeHandler: (event: React.ChangeEvent<HTMLInputElement>, value: boolean | string | number) => void;
    dateChangeHandler: (name: string, date: Date | null) => void;
    handleValidationError: (name: string, error: string | boolean) => void;
    clearDependentFields: (fieldName: string, dependentFieldsMap: Record<string, string[]>) => void;
};
export {};
//# sourceMappingURL=useFormHandlers.d.ts.map