import React, { MutableRefObject } from 'react'; import { TdFormProps } from './type'; import { FormItemInstance } from './const'; import { InternalFormInstance } from './hooks/interface'; export interface FormContextType { showErrorMessage?: TdFormProps['showErrorMessage']; labelWidth?: TdFormProps['labelWidth']; labelAlign?: TdFormProps['labelAlign']; contentAlign?: TdFormProps['contentAlign']; colon?: TdFormProps['colon']; initialData?: TdFormProps['initialData']; requiredMark?: TdFormProps['requiredMark']; requiredMarkPosition?: TdFormProps['requiredMarkPosition']; scrollToFirstError?: TdFormProps['scrollToFirstError']; rules?: TdFormProps['rules']; errorMessage?: TdFormProps['errorMessage']; resetType?: TdFormProps['resetType']; form?: InternalFormInstance; disabled?: TdFormProps['disabled']; readonly?: TdFormProps['readonly']; formMapRef?: MutableRefObject>>; floatingFormDataRef?: MutableRefObject>; onFormItemValueChange: (changedValue: Record) => void; } export declare const FormContext: React.Context; export declare const useFormContext: () => FormContextType;