/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Bytes } from "#util/Bytes.js"; import { BlobStorageDriver } from "./BlobStorageDriver.js"; /** * In-memory blob storage driver for tests and non-filesystem environments. */ export declare class MemoryBlobStorageDriver extends BlobStorageDriver { #private; static readonly id: string; get initialized(): boolean; initialize(): void; close(): void; openBlob(contexts: string[], key: string): Blob; writeBlobFromStream(contexts: string[], key: string, stream: ReadableStream): Promise; /** * Synchronously set bytes for a key, bypassing stream-based write. * Useful in tests where async stream operations may not work with MockTime. */ setBytes(contexts: readonly string[], key: string, data: Uint8Array): void; /** * Synchronously get bytes for a key. * Useful in tests where async blob reading may not work with MockTime. */ getBytes(contexts: readonly string[], key: string): Uint8Array | undefined; delete(contexts: string[], key: string): void; has(contexts: string[], key: string): boolean; keys(contexts: string[]): string[]; contexts(contexts: string[]): string[]; clearAll(contexts: string[]): void; } //# sourceMappingURL=MemoryBlobStorageDriver.d.ts.map