export default class BrQueryBox extends PureComponent { static propTypes: { className: PropTypes.Requireable; singleQuery: PropTypes.Requireable; query: PropTypes.Requireable; placeholder: PropTypes.Requireable; queryList: PropTypes.Validator; queryFormatter: PropTypes.Validator<(...args: any[]) => any>; selectedQueryComparator: PropTypes.Requireable<(...args: any[]) => any>; isQueryAddable: PropTypes.Requireable; isQueryRemovable: PropTypes.Requireable; isQuerySelectable: PropTypes.Requireable; suggestionList: PropTypes.Requireable; /** * A render function that returns a react component that renders the suggested item, with the given query * * (item, query) => react component */ suggestionFormatter: PropTypes.Requireable<(...args: any[]) => any>; /** * A comparison function for search, pass the value and the suggestionObj for comparison. * * (value, suggestionObj) => return boolean */ suggestionComparator: PropTypes.Requireable<(...args: any[]) => any>; /** * A sorter function to is used to rank search results * * (value, suggestionObj1, suggestionObj2) => return a number (just as what the compareFunction of Array.sort() * expects) */ suggestionSorter: PropTypes.Requireable<(...args: any[]) => any>; fetchSuggestion: PropTypes.Requireable<(...args: any[]) => any>; onFetchSuggestionFailure: PropTypes.Requireable<(...args: any[]) => any>; /** * A handler function fired when a new query term is selected/submitted, either the query object or simple string * will be passed. * * query => { statements } * * If preSubmitDecorator is defined, then * preSubmitDecorator(query) => { statements } */ onSubmit: PropTypes.Validator<(...args: any[]) => any>; /** * A transformation function executed when submitting from text input, to allow passing same query object as * using suggestion list selector. * * query => { return transformed object } */ preSubmitDecorator: PropTypes.Requireable<(...args: any[]) => any>; /** * A handler function fired when user removes an existing query, query object will be passed. */ onRemoveQuery: PropTypes.Requireable<(...args: any[]) => any>; /** * A handler function fired when user selects an existing query, query object will be passed. */ onSelectQuery: PropTypes.Requireable<(...args: any[]) => any>; maxSuggestionListLength: PropTypes.Requireable; disableBlur: PropTypes.Requireable; showSearchIcon: PropTypes.Requireable; /** * Enable this if you want to allow user to paste queries from a file with a delimiter */ allowBreakOnPaste: PropTypes.Requireable; /** * Delimiter to be used to break the queries in case of a paste operation */ breakDelimiter: PropTypes.Requireable; /** * If you want to debounce your fetch suggestions call */ allowDebounce: PropTypes.Requireable; /** * Delay in debounce */ debounceDelay: PropTypes.Requireable; }; static defaultProps: { singleQuery: boolean; suggestions: never[]; isQueryAddable: boolean; isQueryRemovable: boolean; isQuerySelectable: boolean; maxSuggestionListLength: number; disableBlur: boolean; allowBreakOnPaste: boolean; breakDelimiter: string; }; constructor(props: any); state: { matchedSuggestions: never[]; removeOnSecondBackspace: boolean; query: any; suggestionsLoading: boolean; }; UNSAFE_componentWillReceiveProps(nextProps: any): void; handleSelectQuery: (e: any, query: any) => void; handleRemoveQuery: (e: any, query: any) => void; handleKeyUp: (e: any) => void; handleBlur: (e: any) => void; getMatchedSuggestions: (value: any, suggestionList: any, suggestionComparator: any, suggestionSorter: any, maxSuggestionListLength: any) => any; fetchFlow: () => void; debouncedCall: (...args: any[]) => void; debouncedSuggestions: (...args: any[]) => void; handleInputChange: (e: any) => void; handleSelectSuggestion: (item: any) => void; handleSubmit: (query: any) => void; handleCompareSelected: (query: any) => any; handlePaste: (event: any) => void; render(): JSX.Element; inputBox: HTMLInputElement | null | undefined; } import { PureComponent } from 'react'; import PropTypes from 'prop-types';