/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { ServerNode } from "#node/ServerNode.js"; import { Observable } from "@matter/general"; /** * Manages components that are present for the lifetime of a server. */ export declare namespace ServerEnvironment { /** Emits the fabric-scoped data are sanitized after the removal of a fabric. Only use for testing! */ const fabricScopedDataSanitized: Observable; function initialize(node: ServerNode): Promise; /** * Discard the credentials the node issues fabrics under. * * The authorities cache key material for the lifetime of their instances, so both are dropped along with what they * persist. An authority supplied by an ancestor environment belongs to whoever supplied it, but key material the * node persisted under its own storage is ours to discard either way: the authority is created lazily and may be * configured without storage, so neither its absence nor its presence proves the node's context is empty. */ function eraseCredentials(node: ServerNode): Promise; /** * Close the services a node's lifetime depends on. * * The order below is load-bearing and was arrived at through a series of shutdown defects. Treat it as fixed: * {@link NodeServices} installs most of these but deliberately does not sequence their closure, because the * services it installs interleave with services it does not. Every step runs even when an earlier one fails, so * no step may assume that its predecessors succeeded. */ function close(node: ServerNode): Promise; } //# sourceMappingURL=ServerEnvironment.d.ts.map