import { DBLiveAPI } from "../api/api"; import { DBLiveSocketManager } from "../socket/socket.manager"; export declare class DBLiveContent { private readonly appKey; private readonly url; private readonly api; private readonly sockets?; private readonly setEnv?; private readonly logger; private readonly storage; private readonly request; constructor(appKey: string, url: string, api: DBLiveAPI, sockets?: DBLiveSocketManager, setEnv?: "api" | "socket"); clearCache(): void; deleteCache(key: string): void; get(key: string, versionId?: string | undefined): Promise | undefined>; getFromCache(key: string): DBLiveContentGetResult | undefined; getValueFromCache(key: string): string | undefined; refresh(key: string): Promise | undefined>; set(key: string, value: T | string, contentType: DBLiveContentType, options: DBLiveContentSetOptions): Promise; private deleteContentTypeCache; private deleteEtagCache; private getContentTypeFromCache; private getEtagFromCache; private getFromSocket; private getFromUrl; private parseValueFromContentType; private setCache; private setContentTypeCache; private setEtagCache; private storageKeyFor; private urlFor; } declare type DBLiveContentGetResult = { contentType: DBLiveContentType; value: T; stringValue: string; }; declare type DBLiveContentRefreshResult = DBLiveContentGetResult & { didChange: boolean; }; declare type DBLiveContentSetOptions = { customArgs?: { [key: string]: string | number; }; lockId?: string; }; export declare enum DBLiveContentType { string = "text/plain", json = "application/json" } export {};