import { FormInstance, FormItemProps } from 'antd'; import { ProColumnProps, ProRule } from '../components/render/propsType'; interface Result { shouldUpdate?: FormItemProps['shouldUpdate']; show?: boolean; disabled?: boolean; rules?: ProRule[]; required?: boolean; [key: string]: any; } interface UseShouldUpdateProps { show?: ProColumnProps['show']; formItemProps?: ProColumnProps['formItemProps'] & { clearNotShow?: boolean; names?: any[]; }; form?: FormInstance; disabled?: ProColumnProps['disabled']; rules?: ProRule[]; required?: boolean; type: string; [key: string]: any; } type HookShouldUpdate = (props: UseShouldUpdateProps) => Result; declare const useShouldUpdate: HookShouldUpdate; export default useShouldUpdate;