import { Dispatch } from 'react'; import { LocaleType, GPSType } from "../../../../interfaces/types"; import { Action, ReducerState } from "./reducer"; import { TypeSearch } from "./types"; type UseSearchBarApiParams = { dispatch: Dispatch; careApiDomain: string; locale?: LocaleType; client?: string; }; export declare const ignoreCacarSpecialty: (specialties: any[]) => any[]; export default function useSearchBarApi({ dispatch, careApiDomain, locale, client, }: UseSearchBarApiParams): { fetchCitiesByLocation: ({ coordinates }: { coordinates?: GPSType; }) => Promise; fetchCitiesByKeyword: (keyword: string) => Promise; fetchSearchResults: (searchKeywords: string, state: ReducerState, searchType: TypeSearch, clientSlug?: string, cacheResult?: boolean) => Promise; fetchAllSpecialties: () => Promise; fetchPopularKeys: (searchType: TypeSearch) => Promise; }; export {};