/** * @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); * * ``` * @classes * MixpanelPeople */ export declare class Mixpanel { /** * * @param aliasId {string} * @param originalId {string} * @returns {Promise} */ static alias(aliasId: string, originalId: string): Promise; /** * * @returns {Promise} */ static distinctId(): Promise; /** * @returns {Promise} */ static flush(): Promise; /** * * @param distinctId {string} * @returns {Promise} */ static identify(distinctId: string): Promise; /** * * @param token {string} * @returns {Promise} */ static init(token: string): Promise; /** * * @param superProperties {any} * @returns {Promise} */ static registerSuperProperties(superProperties: any): Promise; /** * * @returns {Promise} */ static reset(): Promise; /** * * @param eventName {string} * @param eventProperties {any} optional * @returns {Promise} */ static track(eventName: string, eventProperties?: any): Promise; /** * * @returns {Promise} */ static showSurvey(): Promise; /** * * @returns {MixpanelPeople} */ static readonly people: typeof MixpanelPeople; } /** * @private */ export declare class MixpanelPeople { /** * @private */ static plugin: string; /** * @private */ static pluginRef: string; /** * * @param distinctId {string} * @return {Promise} */ static identify(distinctId: string): Promise; /** * * @param peopleProperties {string} * @return {Promise} */ static increment(peopleProperties: any): Promise; /** * * @param pushId * @return {Promise} */ static setPushId(pushId: string): Promise; /** * * @param peopleProperties * @return {Promise} */ static set(peopleProperties: any): Promise; /** * * @param peopleProperties * @return {Promise} */ static setOnce(peopleProperties: any): Promise; }