/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Endpoint } from "#endpoint/Endpoint.js"; import { EndpointStore } from "#storage/EndpointStore.js"; import { StorageContext } from "@matter/general"; /** * Persistence backing for an {@link Endpoint}. * * This is the API {@link Endpoint} uses for reading and writing non-volatile values. */ export declare class ServerEndpointStore extends EndpointStore { #private; get number(): number | undefined; set number(number: number | undefined); /** * ID path of the endpoint below its node root; empty for the root. */ readonly path: string; constructor(storage: StorageContext, path?: string); /** * Create a {@link Datasource.Store} for a behavior. */ createStoreForBehavior(behaviorId: string): import("../../behavior/state/managed/Datasource.js").Datasource.Store; /** * Invoke a function on this store and the stores of descendant parts. */ visit(fn: (store: ServerEndpointStore) => void): void; childStoreFor(endpoint: Endpoint): ServerEndpointStore; /** * The store of the part with ID {@link partId} if it exists, without creating one. */ existingChildStore(partId: string): ServerEndpointStore | undefined; protected storeForPartId(partId: string): ServerEndpointStore; saveNumber(): Promise; load(): Promise; /** * Erase the child storage for one part */ eraseChildStoreFor(endpoint: Endpoint): Promise; } //# sourceMappingURL=ServerEndpointStore.d.ts.map