///
import * as React from 'react';
export interface ISearchLocation {
id: string;
searchableText: string;
displayLabel: string;
}
interface IState {
dropDownIsVisible: boolean;
filteredList: ISearchLocation[];
selectedText: string | null;
selectedItem: ISearchLocation | null;
isFocused?: boolean;
}
interface IProps {
locationList?: ISearchLocation[];
selectedLocation?: ISearchLocation | undefined;
searchHandler?: (location: ISearchLocation) => void;
searchButtonHandler?: () => void;
id?: string;
onBlur?: (e: React.FocusEvent) => void;
errorMessage?: string;
error?: boolean;
touched?: boolean;
className?: string;
buttonLabel: string;
}
export declare class LocationSearch extends React.Component {
searchTimeout: NodeJS.Timeout | undefined;
constructor(props: IProps);
handler: () => void;
searchOnEnterPress: (event: React.KeyboardEvent) => void;
search: (searchText: string) => void;
debounce(callback: () => void, duration: number): void;
onChangeHandler: (event: React.ChangeEvent) => void;
onBlurHandler: (event: React.FocusEvent) => void;
onFocus: (event: React.FocusEvent) => void;
dropDownItemSelect: (item: ISearchLocation) => void;
dropdown(): false | React.JSX.Element;
componentDidMount(): void;
componentWillUnmount(): void;
render(): React.JSX.Element;
}
export {};
//# sourceMappingURL=LocationSearch.d.ts.map