/** * This code was generated by "react-native codegen-lib-harmony" */ import { Tag } from "@rnoh/react-native-openharmony/ts" export namespace PushNotificationTurboModule { export const NAME = 'PushNotificationTurboModule' as const export enum AuthorizationStatus { UNAuthorizationStatusNotDetermined = 0, UNAuthorizationStatusDenied = 1, UNAuthorizationStatusAuthorized = 2, UNAuthorizationStatusProvisional = 3, } export type NotificationRequest = {id: string, title?: string, subtitle?: string, body?: string, badge?: number, sound?: string, category?: string, threadId?: string, fireDate?: string, repeats?: boolean, repeatsComponent?: {year?: boolean, month?: boolean, day?: boolean, dayOfWeek?: boolean, hour?: boolean, minute?: boolean, second?: boolean}, isSilent?: boolean, isCritical?: boolean, criticalSoundVolume?: number, userInfo?: Object, isTimeZoneAgnostic?: boolean} export type PushNotificationPermissions = {alert?: boolean, badge?: boolean, sound?: boolean, critical?: boolean, lockScreen?: boolean, notificationCenter?: boolean, authorizationStatus?: AuthorizationStatus} export interface Spec { addNotificationRequest(notificationRequest: NotificationRequest): void; removeAllDeliveredNotifications(): void; setApplicationIconBadgeNumber(badgeNumber: number): void; removeDeliveredNotifications(identifiers: string[]): void; getDeliveredNotifications(callback: (result: unknown[]) => void): void; checkPermissions(callback: (permissions: PushNotificationPermissions) => void): void; requestPermissions(permissions: Object): Promise; presentLocalNotification(notificationRequest: NotificationRequest): void; scheduleLocalNotification(notificationRequest: NotificationRequest): void; cancelAllLocalNotifications(): void; } }