export default function useLocationInfo({ apiKey: APIKEY, locationType, eventsChange, dataSourceStatus, }: { apiKey: any; locationType: any; eventsChange: any; dataSourceStatus: any; }): { location: { poiname: string; detailedAddress: string; latlng: { lat: number; lng: number; }; }; setLocation: React.Dispatch>; apiKeyStatus: { status: boolean; message: string; }; setApiKeyStatus: React.Dispatch>; currentLocStatus: boolean; currentLocations: React.MutableRefObject; customLocation: React.MutableRefObject; checkCustomLocation: (params: any) => boolean; }; import * as React from "react";