/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { Endpoint } from "#endpoint/Endpoint.js"; import { type BlobStorageDriver, Construction, MaybePromise, StorageContextFactory } from "@matter/general"; import { EndpointStore } from "./EndpointStore.js"; /** * Non-volatile state management for a {@link Node}. * * We eagerly load all available data from disk on startup. This prevents storage from forcing asynchronous * {@link Endpoint} initialization. We then can initialize most behaviors synchronously. */ export declare abstract class NodeStore { #private; /** * Obtain the BDX blob storage driver for this node. Lazily opened on first call. * Override in subclasses that support blob storage. */ bdxStore(): Promise; get construction(): Construction; constructor(storageFactory: StorageContextFactory); toString(): string; [Construction.construct](): MaybePromise; abstract storeForEndpoint(endpoint: Endpoint): EndpointStore; abstract erase(): MaybePromise; protected abstract load(): MaybePromise; protected createStorageContext(name: string): import("@matter/general").StorageContext; protected get storageFactory(): StorageContextFactory; } //# sourceMappingURL=NodeStore.d.ts.map