import React from 'react'; import type { ModalProps } from 'antd'; import { DebounceSelectProps } from '../YwJsonForm/YSearchSelect'; interface ModalSelectorProps extends ModalProps, DebounceSelectProps { maxItems?: number; defaultValue?: any; fieldNames?: { label: string; value: string; }; tagRender?: (props: any) => React.ReactElement React.ReactElement) | (new (props: any) => React.Component)>; labelInValue: boolean; fetchOptions: (any: any) => Promise; itemKey?: string; children?: React.ReactNode; realLength?: number; } declare const ModalSelector: { ({ maxItems, defaultValue, fieldNames, fetchOptions, tagRender, labelInValue, children, onOk, value, placeholder, autoFocus, showSearch, ...props }: ModalSelectorProps): JSX.Element; defaultProps: { onOk: () => void; defaultValue: any; labelInValue: boolean; placeholder: string; onChange: () => void; onCancel: () => void; fieldNames: { label: string; value: string; }; }; }; export default ModalSelector;