import { FieldValue, FormErrors, FormValues } from '../form-types'; export declare function useFormState(initialValues: FormValues, onValidate?: (values: FormValues) => FormErrors): { values: FormValues; errors: FormErrors; touched: Set; setValue: (key: string, value: FieldValue) => void; setTouched: (key: string) => void; touchAll: (additionalErrors?: FormErrors) => void; touchKeys: (keys: string[]) => void; validate: () => FormErrors; reset: () => void; }; export type FormState = ReturnType;