UNPKG

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.

32 lines 1.03 kB
import { StorageConfig } from '../types'; export declare class StorageManager { private platform; private config; private prefix; constructor(config?: StorageConfig); set(key: string, value: any): Promise<void>; get<T = any>(key: string): Promise<T | null>; remove(key: string): Promise<void>; clear(): Promise<void>; keys(): Promise<string[]>; has(key: string): Promise<boolean>; size(): Promise<number>; private setWebStorage; private getWebStorage; private removeWebStorage; private clearWebStorage; private getWebStorageKeys; private setNativeStorage; private getNativeStorage; private removeNativeStorage; private clearNativeStorage; private getNativeStorageKeys; private prepareData; private parseData; private encrypt; private decrypt; private ensurePlatform; } export declare const storage: StorageManager; export declare const createStorage: (config: StorageConfig) => StorageManager; //# sourceMappingURL=storage.d.ts.map