import {Plugin, Cordova, CordovaProperty} from './plugin'; declare var mixpanel: any; /** * @name Mixpanel * @description * Cordova Plugin that wraps Mixpanel SDK for Android and iOS * * @usage * ``` * import {Mixpanel} from 'ionic-native'; * * Mixpanel.init(token) * .then(onSuccess) * .catch(onError); * * ``` */ @Plugin({ plugin: 'cordova-plugin-mixpanel', pluginRef: 'mixpanel', repo: 'https://github.com/samzilverberg/cordova-mixpanel-plugin' }) export class Mixpanel { /** * * @param aliasId {string} * @param originalId {string} * @returns {Promise} */ @Cordova() static alias(aliasId: string, originalId: string): Promise {return; } /** * * @returns {Promise} */ @Cordova() static distinctId(): Promise {return; } /** * */ @Cordova() static flush(): Promise {return; } /** * * @param distinctId {string} * @returns {Promise} */ @Cordova() static identify(distinctId): Promise {return; } /** * * @param token {string} * @returns {Promise} */ @Cordova() static init(token: string): Promise {return; } /** * * @param superProperties * @returns {Promise} */ @Cordova() static registerSuperProperties(superProperties: any): Promise {return; } /** * * @returns {Promise} */ @Cordova() static reset(): Promise {return; } /** * * @param eventName * @param eventProperties */ @Cordova() static track(eventName: string, eventProperties: any): Promise {return; } /** * * @returns {Promise} */ @Cordova() static showSurvey(): Promise {return; } /** * * @returns {MixpanelPeople} */ @CordovaProperty static get people(): MixpanelPeople {return mixpanel.people; }; } export declare class MixpanelPeople { static identify(distinctId: string, onSuccess?: Function, onFail?: Function): void; static increment(peopleProperties: any, onSuccess?: Function, onFail?: Function): void; static setPushId(pushId: string, onSuccess?: Function, onFail?: Function): void; static set(peopleProperties: any, onSuccess?: Function, onFail?: Function): void; static setOnce(peopleProperties: any, onSuccess?: Function, onFail?: Function): void; }