declare module "windows.networking.pushnotifications" { export enum PushNotificationType { toast, tile, badge, raw, tileFlyout, } export class PushNotificationChannel { expirationTime: Date; uri: String; constructor(); close(): void; addListener(type: "PushNotificationReceived", listener: (ev: Event) => void): void ; removeListener(type: "PushNotificationReceived", listener: (ev: Event) => void): void ; on(type: "PushNotificationReceived", listener: (ev: Event) => void): void ; off(type: "PushNotificationReceived", listener: (ev: Event) => void): void ; addListener(type: string, listener: (ev: Event) => void): void ; removeListener(type: string, listener: (ev: Event) => void): void ; on(type: string, listener: (ev: Event) => void): void ; off(type: string, listener: (ev: Event) => void): void ; } export class PushNotificationChannelManagerForUser { user: Object; constructor(); createPushNotificationChannelForApplicationAsync(callback: (error: Error, result: PushNotificationChannel) => void): void ; createPushNotificationChannelForApplicationAsync(applicationId: String, callback: (error: Error, result: PushNotificationChannel) => void): void ; createPushNotificationChannelForSecondaryTileAsync(tileId: String, callback: (error: Error, result: PushNotificationChannel) => void): void ; } export class PushNotificationReceivedEventArgs { cancel: Boolean; badgeNotification: Object; notificationType: PushNotificationType; rawNotification: RawNotification; tileNotification: Object; toastNotification: Object; constructor(); } export class RawNotification { content: String; constructor(); } export class PushNotificationChannelManager { constructor(); static createPushNotificationChannelForApplicationAsync(callback: (error: Error, result: PushNotificationChannel) => void): void ; static createPushNotificationChannelForApplicationAsync(applicationId: String, callback: (error: Error, result: PushNotificationChannel) => void): void ; static createPushNotificationChannelForSecondaryTileAsync(tileId: String, callback: (error: Error, result: PushNotificationChannel) => void): void ; static getForUser(user: Object): PushNotificationChannelManagerForUser; } }