import { IonicNativePlugin } from '@ionic-native/core'; export interface TagOptions { sequence: number; tags?: Array; } export interface AliasOptions { sequence: number; alias?: string; } export declare class JPush extends IonicNativePlugin { init(): Promise; setDebugMode(enable: boolean): Promise; 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): Promise; resetBadge(): Promise; setApplicationIconBadgeNumber(badge: number): Promise; getApplicationIconBadgeNumber(): Promise; addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: object): Promise; deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise; addDismissActions(actions: Array, categoryId: string): Promise; addNotificationActions(actions: Array, categoryId: string): Promise; setLocation(latitude: number, longitude: number): Promise; startLogPageView(pageName: string): Promise; stopLogPageView(pageName: string): Promise; beginLogPageView(pageName: string, duration: number): Promise; 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; }