import { IonicNativePlugin } from '@ionic-native/core'; export interface TagOptions { sequence: number; tags?: Array; } export interface AliasOptions { sequence: number; alias?: string; } /** * @name jpush * @description * This plugin does something * * @usage * ```typescript * import { jpush } from '@ionic-native/jpush'; * * * constructor(private jpush: jpush) { } * * ... * * * this.jpush.functionName('Hello', 123) * .then((res: any) => console.log(res)) * .catch((error: any) => console.error(error)); * * ``` */ export declare class JPushOriginal extends IonicNativePlugin { /** * This function does something * @param arg1 {string} Some param to configure something * @param arg2 {number} Another param to configure something * @return {Promise} Returns a promise that resolves when something happens */ functionName(arg1: string, arg2: number): Promise; init(): void; setDebugMode(enable: boolean): void; getRegistrationID(): Promise; stopPush(): Promise; resumePush(): Promise; isPushStopped(): Promise; setTags(params: TagOptions): Promise; addTags(params: TagOptions): Promise; deleteTags(params: TagOptions): Promise; cleanTags(params: TagOptions): Promise; getAllTags(params: TagOptions): Promise; /** * @param params { sequence: number, tag: string } */ checkTagBindState(params: object): Promise; setAlias(params: AliasOptions): Promise; deleteAlias(params: AliasOptions): Promise; getAlias(params: AliasOptions): Promise; /** * Determinate whether the application notification has been opened. * * iOS: 0: closed; >1: opened. * UIRemoteNotificationTypeNone = 0, * UIRemoteNotificationTypeBadge = 1 << 0, * UIRemoteNotificationTypeSound = 1 << 1, * UIRemoteNotificationTypeAlert = 1 << 2, * UIRemoteNotificationTypeNewsstandContentAvailability = 1 << 3 * * Android: 0: closed; 1: opened. */ getUserNotificationSettings(): Promise; clearLocalNotifications(): Promise; setBadge(badge: number): void; resetBadge(): void; setApplicationIconBadgeNumber(badge: number): void; getApplicationIconBadgeNumber(): Promise; addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: object): void; deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): void; addDismissActions(actions: Array, categoryId: string): void; addNotificationActions(actions: Array, categoryId: string): void; setLocation(latitude: number, longitude: number): void; startLogPageView(pageName: string): void; stopLogPageView(pageName: string): void; beginLogPageView(pageName: string, duration: number): void; getConnectionState(): Promise; setBasicPushNotificationBuilder(): Promise; setCustomPushNotificationBuilder(): Promise; clearAllNotification(): Promise; clearNotificationById(id: number): Promise; setLatestNotificationNum(num: number): Promise; addLocalNotification(builderId: number, content: string, title: string, notificationId: number, broadcastTime: number, extras?: string): Promise; removeLocalNotification(notificationId: number): Promise; reportNotificationOpened(msgId: number): Promise; requestPermission(): Promise; setSilenceTime(startHour: number, startMinute: number, endHour: number, endMinute: number): Promise; setPushTime(weekdays: Array, startHour: number, endHour: number): Promise; } export declare const JPush: JPushOriginal;