import React from "react"; import { UseFormProps as UseHookFormProps, UseFormReturn, FieldValues } from "react-hook-form"; import { BaseRecord, HttpError, UseFormProps as UseFormCoreProps, UseFormReturnType as UseFormReturnTypeCore } from "@pankod/refine-core"; export declare type UseFormReturnType = UseFormReturn & { refineCore: UseFormReturnTypeCore; saveButtonProps: { disabled: boolean; onClick: (e: React.BaseSyntheticEvent) => void; }; }; export declare type UseFormProps = { /** * Configuration object for the core of the [useForm](/docs/api-reference/core/hooks/useForm/) * @type [`UseFormCoreProps`](/docs/api-reference/core/hooks/useForm/#properties) */ refineCoreProps?: UseFormCoreProps; /** * When you have unsaved changes and try to leave the current page, **refine** shows a confirmation modal box. * @default `false*` */ warnWhenUnsavedChanges?: boolean; } & UseHookFormProps; export declare const useForm: ({ refineCoreProps, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, ...rest }?: UseFormProps) => UseFormReturnType; //# sourceMappingURL=index.d.ts.map