/*! * @license * Copyright Squiz Australia Pty Ltd. All Rights Reserved. */ import { StorageAdapterContract, StorageMemoryAdapter } from '@squiz/mercury-storage'; import { JsonObject } from 'type-fest'; import { StorageMockAdapterNewDto } from './StorageMock.adapter.dto'; /** * A mock storage adapter. * * Here we are adding a `__getStore` method so as to expose the protected `store`. This also has the added benefit of not * having to sprinkle `// @ts-ignore TS2445` comments all over our code. * @export * @class StorageMockAdapter * @extends {StorageMemoryAdapter} * @implements {StorageAdapterContract} */ export declare class StorageMockAdapter extends StorageMemoryAdapter implements StorageAdapterContract { /** * Creates an instance of StorageMockAdapter. * @param {StorageMockAdapterNewDto} dto The options to accept. * @memberof StorageMockAdapter */ constructor({ initialStore }: StorageMockAdapterNewDto); /** * Get a snapshot of store in its current state. * @returns {JsonObject} The storage store. * @memberof StorageMockAdapter */ __getStore(): JsonObject; }