@open-tender/cloud
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.
12 lines (11 loc) • 887 B
TypeScript
import { LatLng, RequestError } from '@open-tender/types';
import { AppState } from '../app';
export interface GeoLocationState {
latLng: LatLng | null;
error: RequestError;
loading: boolean;
}
export declare const resetGeolocation: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"geolocation/resetGeolocation">, setGeoLatLng: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "geolocation/setGeoLatLng">, setGeoError: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "geolocation/setGeoError">, setGeoLoading: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"geolocation/setGeoLoading">;
export declare const selectGeo: (state: AppState) => GeoLocationState;
export declare const selectGeoLatLng: (state: AppState) => LatLng | null;
export declare const geolocationReducer: import("redux").Reducer<GeoLocationState, import("redux").AnyAction>;