///
import { ViewStateActions } from '../../../../services/hooks';
export interface AutocompleteProps {
title: string;
options: any[];
optionKey?(option: any): string;
state?: string;
getMore?(): void;
defaultValue?: string;
onChange?(value: string): void;
onInputFocus?(): void;
onSelect(option: any): void;
setTitleOnValueChange?(value: string): string;
setTitleOnValueSelect?(option: any): string;
placeholder?: string;
inputDataHook?: string;
liDataHook?: string;
primaryOption?: any;
classes?: {
input?: string;
list?: string;
listItem?: string;
wrapper?: string;
};
disableFreeWrite?: boolean;
readonly?: boolean;
}
interface StateData {
title: string;
currentOptions: any[];
inputValue: string;
inputValid: boolean;
inputValueChanged: boolean;
filteredOptions: any[];
placeholder?: string;
selectedOption: any;
}
interface Actions {
onScroll(UIElement: any): void;
onValueChange(v: string): void;
onValueSelect(primaryOption: any): void;
getItems(): any[];
onInputFocus(e: any, p: any, ref?: React.MutableRefObject): void;
onInputBlur(e: any, p: any, ref?: React.MutableRefObject): void;
}
export declare const useAutocomplete: (props: AutocompleteProps) => [StateData, ViewStateActions, Actions];
export {};