import type { RefObject } from 'react';
import type { Poi } from './libs/Map';
interface UseLocationParams {
    currentPoi?: Poi;
    setCurrentPoi?: (poi: Poi) => void;
    /**
     * 是否自动获取当前位置
     */
    autoLocation?: boolean;
    locationRange?: 'current' | 'unlimit';
    radius?: number;
    platform?: 'pc' | 'h5';
}
interface UseLocation {
    onSearch: (keywords: string) => void;
    poiList: Poi[];
    mapRef: RefObject<{
        map: any;
    }>;
}
declare const useLocation: ({ currentPoi, setCurrentPoi, locationRange, radius, platform }?: UseLocationParams) => UseLocation;
export default useLocation;
