declare global { interface PluginRegistry { GeofenceTracker?: GeofenceTrackerPlugin; } } export interface GeofenceTrackerPlugin { registerLocation(location: GeofenceLocation): Promise; unregisterLocation(id: string): Promise; getTrackedPresences(): Promise<{ presences: GeofencePresence[]; }>; } export interface GeofenceLocation { id: string; latitude: number; longitude: number; radius: number; } export interface GeofencePresence { location: GeofenceLocation; start: string; end: string; }