declare global { interface PluginRegistry { PushNotificationsExt?: PushNotificationsExt; } } export interface PluginListenerHandle { remove: () => void; } export interface PushNotificationSettings { value: string; } export interface PushNotificationsExt { getNotificationSettings(): Promise; addListener(eventName: 'pushNotificationsSettings', listenerFunc: (notification: PushNotificationSettings) => void): PluginListenerHandle; }