/// <reference types="react" />
import { box_color } from '../mappings/box-colors';
export declare function useForm({ defaultValues, submitting, errors, color, mode, ...props }: {
    [x: string]: any;
    defaultValues?: {} | undefined;
    submitting?: boolean | undefined;
    errors?: {} | undefined;
    color?: string | undefined;
    mode?: undefined;
}, name?: string | undefined, { nested }?: {
    nested?: boolean;
}): {
    Form: ({ customChildren, ...props }: any) => JSX.Element;
    form: {
        errors: {
            _: any;
        } | {
            _?: undefined;
        };
        color: box_color;
        rhf: import("react-hook-form").UseFormReturn<{}>;
    };
    field: {
        register: import("react-hook-form").UseFormRegister<{}>;
        control: import("react-hook-form").Control<{}>;
        errors: {};
        defaultValues: {};
        disabled: boolean;
    };
    t: import("react-i18next").TFunction<"translation">;
    tf: (k: string | string[], ...args: any[]) => any;
    color: box_color;
    SubmitButton: ({ className, mt, containerProps, overridenClassName, ...props }: any) => JSX.Element;
};
export default useForm;
//# sourceMappingURL=useForm.d.ts.map