This worked for me
Create a file cordova.d.ts with below code in Typings folderinterface Window {
plugins: any;
}
Reference it in main.d.ts as/// <reference path="./cordova.d.ts"/>
and I'm able to use window.plugins.socialsharing.share('Message only');
Regarding InAppBrowser I added below code and it worked.declare let cordova: any;
This is my Env
`Your system information:
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 2.0.0-beta.1
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
ios-deploy version: 1.8.2
ios-sim version: 5.0.1
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 7.2.1 Build version 7C1002
`