import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/fromPromise'; export declare class DatabaseCollection { name: string; private _instance; constructor(name: string); getById(id: string): Observable; static generateId(name: string): string; save(key: string, value: any, ttl?: number, timestamp?: number): Observable; saveLocal(key: string, value: any): Observable; list(): Observable; removeById(id: string): Observable; clear(): void; }