Ionic 4 WifiWizard2 - cordova pluing



I’m testing ionic4

in ionic 3 I use a cordova plugin called WifiWizard. that now has the new version WifiWizard2

to use this plugin in ionic 3 simply on the page I wrote

declare let WifiWizard2: any;

and then in the code I could directly use its functions for example
WifiWizard2.conect ();

but now with ionic4 this is not so.

can someone help me to know how to use WifiWizard2 on ionic4?

Thank you