strapi-plugin-map-box
Version:
30 lines (29 loc) • 876 B
TypeScript
/// <reference types="react" />
import { type MapBoxValue, type ViewState } from './types';
type config = {
accessToken: string;
debugMode: boolean;
};
export declare const useMapBoxSettings: () => {
config: config | null;
isLoading: boolean;
error: string | null;
};
export declare const useMapLocationHook: (initialValue?: MapBoxValue) => {
viewState: ViewState;
setViewState: import("react").Dispatch<import("react").SetStateAction<ViewState>>;
markerPosition: {
longitude: number;
latitude: number;
};
setMarkerPosition: import("react").Dispatch<import("react").SetStateAction<{
longitude: number;
latitude: number;
}>>;
};
export declare const useLocationService: () => {
searchLocation: (query: string) => Promise<any>;
searchError: string | null;
searchResults: any;
};
export {};