import { Point } from './interfaces'; export declare type YamapSuggest = { title: string; subtitle?: string; uri?: string; }; export declare type YamapCoords = { lon: number; lat: number; }; export declare type YamapSuggestWithCoords = YamapSuggest & Partial; export declare enum SuggestTypes { YMKSuggestTypeUnspecified = 0, /** * Toponyms. */ YMKSuggestTypeGeo = 1, /** * Companies. */ YMKSuggestTypeBiz = 2, /** * Mass transit routes. */ YMKSuggestTypeTransit = 4 } declare type SuggestOptions = { userPosition?: Point; suggestWords?: boolean; suggestTypes?: SuggestTypes[]; }; declare type SuggestFetcher = (query: string, options?: SuggestOptions) => Promise>; declare type SuggestWithCoordsFetcher = (query: string, options?: SuggestOptions) => Promise>; declare type SuggestResetter = () => Promise; declare type LatLonGetter = (suggest: YamapSuggest) => YamapCoords | undefined; declare const Suggest: { suggest: SuggestFetcher; suggestWithCoords: SuggestWithCoordsFetcher; reset: SuggestResetter; getCoordsFromSuggest: LatLonGetter; }; export default Suggest;