import { StorageInterface } from '../interfaces/storage.interface'; import { SecureStorageConfig } from '../interfaces/config.interface'; /** * Vendor. */ import { CryptService } from './crypt.service'; import { StorageService } from 'ngx-webstorage-service'; /** * RxJS. */ import { Observable } from 'rxjs'; export declare class SecureLocalStorageService implements StorageInterface { private storage; private config; private cryptService; /** * Secure local storage constructor. * * @param storage * @param config * @param cryptService */ constructor(storage: StorageService, config: SecureStorageConfig, cryptService: CryptService); /** * Clean storage. * * @returns Observable */ clean(): Observable; /** * Destroy storage key. * * @param key * * @returns Observable */ destroy(key: string): Observable; /** * Get storage key value. * * @param key * * @returns Observable */ get(key: string): Observable; /** * Check storage has key. * * @param key * * @returns Observable */ has(key: string): Observable; /** * Put storage. * * @param key * @param value * * @returns Observable */ put(key: string, value: string): Observable; }