/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MaybePromise } from "#util/Promises.js";
import { Environment } from "../environment/Environment.js";
import type { DataNamespace } from "./DataNamespace.js";
import { MemoryStorageDriver } from "./MemoryStorageDriver.js";
import { StorageDriver } from "./StorageDriver.js";
import { StorageManager } from "./StorageManager.js";
import { StorageService } from "./StorageService.js";
/**
 * A {@link StorageService} subclass for tests and non-filesystem environments.
 *
 * Overrides {@link open} to call a user-supplied opener function.  The opener defaults to
 * `() => new MemoryStorageDriver()`, so `new MockStorageService(env)` gives you a pure in-memory storage service with
 * no further setup.
 */
export declare class MockStorageService extends StorageService {
    #private;
    constructor(environment: Environment, opener?: (namespace: string) => MaybePromise<StorageDriver>);
    /**
     * Get or create the in-memory store for a namespace.
     *
     * Only available when using the default (no custom opener) mode.  Useful for tests that need to pre-populate or
     * inspect storage directly.
     */
    store(namespace: string): MemoryStorageDriver;
    get isConfigured(): boolean;
    open(namespace: string | DataNamespace): Promise<StorageManager>;
}
//# sourceMappingURL=MockStorageService.d.ts.map