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