import { FormInstance } from 'antd';
import { CSSProperties, ReactElement } from 'react';

export type FormItemWrapperDependenciesProps = {
	children?: (form: FormInstance, otherProps: {
		style?: CSSProperties;
		className?: string;
	}) => ReactElement;
	dependencies: any[];
	className?: string;
	style?: CSSProperties;
};
/**
 * FormItem依赖写法包装，当处在EasyForm内部时，不支持  <Form.Item dependencies={['xxx']} noStyle /> 此写法，使用 <FormItemWrapperDependencies dependencies={['xxx']} /> 代替
 *
 * ```
 * 例如：（其中 otherProps 中 style、className透传是必要的）
 *  <FormItemWrapperDependencies dependencies={['xx2']}>
 *    {(_form, otherProps) => {
 *      return (
 *        <FormItemWrapper
 *          name="xxxxx"
 *          label="xx1"
 *          style={otherProps.style}
 *          className={otherProps.className}
 *        >
 *          <Input />
 *        </FormItemWrapper>
 *      );
 *    }}
 *  </FormItemWrapperDependencies>
 *
 *
 * 说明：
 * 透传style、className 是因为在EasyForm内部的BoxGrid组件下发的style、className在配置了noStyle后Form.Item不接收导致的
 *
 * ```
 */
export declare const FormItemWrapperDependencies: {
	(props: FormItemWrapperDependenciesProps): import("react").JSX.Element;
	domTypeName: string;
};

export {};
