you need to install the plugin using npm
npm install cordova-plugin-geofence
npm install @ionic-native/geofence
ionic cap sync
should be
import { Geofence } from '@ionic-native/geofence';
and then I think…
await Geofence.initialize();
await Geofence.addOrUpdate(fence)