export interface TwitterConnectResponse { /** * Twitter Username */ userName: string; /** * Twitter User ID */ userId: string; /** * Twitter OAuth Secret */ secret: string; /** * Twitter OAuth Token */ token: string; } /** * @name Twitter Connect * @description * Plugin to use Twitter Single Sign On * Uses Twitter's Fabric SDK * ```typescript * import {TwitterConnect} from 'ionic-native'; * * function onSuccess(response) { * console.log(response); * * // Will console log something like: * // { * // userName: 'myuser', * // userId: '12358102', * // secret: 'tokenSecret' * // token: 'accessTokenHere' * // } * } * * TwitterConnect.login().then(onSuccess, onError); * * TwitterConnect.logout().then(onLogoutSuccess, onLogoutError); * ``` * @interfaces * TwitterConnectResponse */ export declare class TwitterConnect { /** * Logs in * @returns {Promise} returns a promise that resolves if logged in and rejects if failed to login */ static login(): Promise; /** * Logs out * @returns {Promise} returns a promise that resolves if logged out and rejects if failed to logout */ static logout(): Promise; /** * Returns user's profile information * @returns {Promise} returns a promise that resolves if user profile is successfully retrieved and rejects if request fails */ static showUser(): Promise; }