notification-kit
Version:
A unified notification library for React + Capacitor apps. One API for push notifications, in-app notifications, and local notifications across Web, iOS, and Android.
10 lines • 1 kB
TypeScript
import { LocalNotificationSchema, Channel as CapacitorChannel, Importance as CapacitorImportance } from '@capacitor/local-notifications';
import { ScheduleOptions, NotificationChannel, ChannelImportance, LocalNotificationPayload } from '../types';
export declare function toCapacitorImportance(importance: ChannelImportance): CapacitorImportance;
export declare function fromCapacitorImportance(importance: CapacitorImportance): ChannelImportance;
export declare function toCapacitorChannel(channel: NotificationChannel): CapacitorChannel;
export declare function fromCapacitorChannel(channel: CapacitorChannel): NotificationChannel;
export declare function toCapacitorLocalNotification(options: ScheduleOptions & LocalNotificationPayload): LocalNotificationSchema;
export declare function fromCapacitorLocalNotification(notification: LocalNotificationSchema): LocalNotificationPayload;
export declare function toPlatformCapabilities(providerCaps: any): any;
//# sourceMappingURL=capacitor-types.d.ts.map