import { HttpClient } from '@angular/common/http'; import { InjectionToken } from '@angular/core'; import { Observable } from 'rxjs'; import { Cache } from './cache'; import { CacheEntryOptions } from './cache-entry-options'; import { CacheOptions } from './cache-options'; import { InitialCacheData } from './initial-cache-data'; export declare const REMOTE_CACHE_CHECKER_ENDPOINT_URL: InjectionToken; export declare class CacheService { private readonly _cache; private readonly _platformId; private readonly _httpClient?; private readonly _cacheOptions; private readonly _logger; private readonly _remoteCacheCheckInterval; readonly enableRemoteCacheCheck: boolean; constructor(_cache: Cache, _platformId: Object, _httpClient?: HttpClient | undefined, data?: InitialCacheData, options?: CacheOptions, remoteCacheCheckerEndpointUrl?: string, loggerFactory?: any); getItem(key: string): T | null; getOrSetSync(key: string, factory: (entryOptions: CacheEntryOptions) => T, options?: CacheEntryOptions): T; getOrSetPromise(key: string, factory: (entryOptions: CacheEntryOptions) => Promise, options?: CacheEntryOptions): Promise; getOrSet(key: string, factory: (entryOptions: CacheEntryOptions) => Observable, options?: CacheEntryOptions): Observable; setItem(key: string, value: Object, options?: CacheEntryOptions): void; removeItem(key: string): void; clear(): void; private checkStorage; private logDebug; private logError; private getOrSetInternal; private invokeFactory; private setItemInternal; private refreshLastAccessTime; private prepareCacheEntryOptions; private isValid; }