import { IAsyncStore } from '@eppo/js-client-sdk-common'; export declare class StorageFullUnableToWrite extends Error { constructor(message?: string); } export declare class LocalStorageUnknownFailure extends Error { originalError?: Error | undefined; constructor(message?: string, originalError?: Error | undefined); } /** * Interface for a string-based storage engine which stores string contents as well as metadata * about those contents (e.g., when it was last updated) */ export interface IStringStorageEngine { getContentsJsonString: () => Promise; getMetaJsonString: () => Promise; setContentsJsonString: (configurationJsonString: string) => Promise; setMetaJsonString: (metaJsonString: string) => Promise; } /** * Asynchronous store that operates using a provided underlying engine that stores strings. * Example string-based storage engines include a browser's local storage, or a Chrome extension's * chrome storage. * Objects are stored by serializing to JSON strings, and then retrieved by deserializing. */ export declare class StringValuedAsyncStore implements IAsyncStore { private storageEngine; private cooldownSeconds; private initialized; constructor(storageEngine: IStringStorageEngine, cooldownSeconds?: number); isInitialized(): boolean; isExpired(): Promise; entries(): Promise>; /** * @param entries * @throws StorageFullUnableToWrite */ setEntries(entries: Record): Promise; } //# sourceMappingURL=string-valued.store.d.ts.map