UNPKG

536 BTypeScriptView Raw
1import { StorageStrategy } from '../interfaces/storageStrategy';
2import { Observable } from 'rxjs';
3import { StorageService } from '../interfaces/storageService';
4export declare class AsyncStorage implements StorageService {
5 protected strategy: StorageStrategy<any>;
6 constructor(strategy: StorageStrategy<any>);
7 retrieve(key: string): Observable<any>;
8 store(key: string, value: any): Observable<any>;
9 clear(key?: string): Observable<void>;
10 getStrategyName(): string;
11 observe(key: string): Observable<any>;
12}