UNPKG

web-storage-helper

Version:

A TypeScript library providing a unified API for managing browser storage with support for multiple storage types (localStorage, sessionStorage, cookies, IndexedDB, Temp) and optional encryption for secure data storage.

16 lines 648 B
import { StorageConfig, StorageType } from './types'; declare class Storage { private static instance; private config; private constructor(); static getInstance(): Storage; configure(config: StorageConfig): void; private validateEncryption; private getStorage; set(type: StorageType, key: string, value: any, encryption: boolean): boolean | Promise<boolean>; get(type: StorageType, key: string, encryption: boolean): any; clear(type: StorageType, encryption: boolean, key?: string): boolean | Promise<boolean>; } declare const _default: Storage; export default _default; //# sourceMappingURL=storage.d.ts.map