/// import * as React from "react"; import * as PropTypes from "prop-types"; import { Option, OnChangeHandler, ReactAsyncSelectProps } from "react-select"; import { InputContext } from "react-context-form"; export interface AsyncEntitySelectProps extends ReactAsyncSelectProps { loadOptions: (value: string) => Promise; minLength?: number; } export declare const AsyncEntitySelectPropTypes: { loadOptions: PropTypes.Validator; minLength: PropTypes.Requireable; }; export declare const AsyncEntitySelectDefaultProps: { minLength: number; }; export interface AsyncEntitySelectState { cache: { [T: string]: Option[]; }; } export declare class AsyncEntitySelect extends React.Component { static readonly propTypes: { loadOptions: PropTypes.Validator; minLength: PropTypes.Requireable; }; static readonly defaultProps: { minLength: number; }; static readonly contextTypes: { id: PropTypes.Validator; name: PropTypes.Validator; value: PropTypes.Requireable; onChange: PropTypes.Validator; onAttributeChange: PropTypes.Validator; onFocus: PropTypes.Validator; onBlur: PropTypes.Validator; onMount: PropTypes.Validator; }; readonly context: InputContext; state: AsyncEntitySelectState; protected handleChange: OnChangeHandler; render(): JSX.Element; protected handleRef: (element: any) => void; protected loadOptions: (value: string) => Promise<{ options: Option[]; }>; }