import { IStringStorageEngine } from './string-valued.store'; /** * Local storage implementation of a string-valued store for storing a configuration and its metadata. * * This serializes the entire contents into a single string and then stores it to a single local * storage key. Same with metadata about the store (e.g., when it was last updated). * * Starting from migration version 1, all data is stored compressed using LZ-string. */ export declare class LocalStorageEngine implements IStringStorageEngine { private localStorage; private static readonly GLOBAL_META_KEY; private static readonly MIGRATION_VERSION; private readonly contentsKey; private readonly metaKey; constructor(localStorage: Storage, storageKeySuffix: string); getContentsJsonString: () => Promise; getMetaJsonString: () => Promise; /** * @throws StorageFullUnableToWrite * @throws LocalStorageUnknownFailure */ setContentsJsonString: (configurationJsonString: string) => Promise; /** * @throws StorageFullUnableToWrite * @throws LocalStorageUnknownFailure */ setMetaJsonString: (metaJsonString: string) => Promise; /** * @throws StorageFullUnableToWrite * @throws LocalStorageUnknownFailure */ private safeWrite; private ensureCompressionMigration; private getGlobalMeta; private setGlobalMeta; clear(): void; } //# sourceMappingURL=local-storage-engine.d.ts.map