import { FormProps } from 'antd'; import ErrorList from 'antd/es/form/ErrorList'; import { useForm, useWatch } from 'antd/es/form/Form'; import FormItem from 'antd/es/form/FormItem'; import FormList from 'antd/es/form/FormList'; import { FormProvider } from 'antd/es/form/context'; import useFormInstance from 'antd/es/form/hooks/useFormInstance'; import React from 'react'; export type SparkFormProps = FormProps & { labelMarginRight?: 'default' | 'small'; }; export type SparkFormRef = { formRef: React.MutableRefObject; }; type CompoundedComponent = React.ForwardRefExoticComponent> & { useForm: typeof useForm; useFormInstance: typeof useFormInstance; useWatch: typeof useWatch; Item: typeof FormItem; List: typeof FormList; ErrorList: typeof ErrorList; Provider: typeof FormProvider; /** @deprecated Only for warning usage. Do not use. */ create: () => void; }; declare const SparkForm: CompoundedComponent; export default SparkForm;