/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Endpoint } from "#endpoint/Endpoint.js"; import { type BlobStorageDriver, Destructable, Environment, StorageManager } from "@matter/general"; import { ClientNodeStores } from "../client/ClientNodeStores.js"; import { NodeStore } from "../NodeStore.js"; import { ServerEndpointStores } from "./ServerEndpointStores.js"; /** * {@link ServerNode} persistence. * * Each {@link ServerNode} has an instance of this store. * * Exclusive access is enforced by {@link Directory.lock} when a filesystem-backed storage driver is in use. */ export declare class ServerNodeStore extends NodeStore implements Destructable { #private; constructor(environment: Environment, nodeId: string); static create(environment: Environment, nodeId: string): Promise; close(): Promise; /** * Stores associated with server endpoints supported by this node. */ get endpointStores(): ServerEndpointStores; /** * Stores associated with remote nodes known by this node. */ get clientStores(): ClientNodeStores; /** * The underlying {@link StorageManager} that provides node data. */ get storage(): StorageManager; storeForEndpoint(endpoint: Endpoint): import("./ServerEndpointStore.js").ServerEndpointStore; /** * Lazily opens and returns the BDX blob storage driver using a dedicated namespace. */ bdxStore(): Promise; /** * Discard the endpoint, peer and BDX data persisted for the node. Each is erased even if another fails, so a * single failure cannot leave the others behind. */ erase(): Promise; load(): Promise; } //# sourceMappingURL=ServerNodeStore.d.ts.map