/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { ClientSubscriptions } from "#action/client/subscription/ClientSubscriptions.js"; import { PeerAddress } from "#peer/PeerAddress.js"; import { SessionManager } from "#session/SessionManager.js"; import { Duration } from "@matter/general"; /** * Speeds up controller re-subscription after a peer reboot for devices that do NOT persist subscriptions. * * Callers arm a peer when they know it is about to reboot and return (e.g. OTA reaching its apply phase). When the * peer's new session appears we (A) close older sessions and (B) start a grace window: if a subscription receives a * report within it over a session opened since that return (a persistent device fed it), we leave the subscription * alone; otherwise we force re-subscription. */ export declare class RebootResubscribeArmer { #private; constructor(sessions: SessionManager, subscriptions: ClientSubscriptions); /** * Expects `peerAddress` to restart and return. `applyDelay` is how long the device was told to wait before it * applies, such as the `DelayedActionTime` of an `ApplyUpdateResponse` that allowed the apply; the return deadline * covers that wait, the apply and the restart. */ arm(peerAddress: PeerAddress, applyDelay?: Duration): void; /** * How long after it was allowed to apply with `applyDelay` an armed device has to return before the armer assumes it * restarted silently and forces a resubscription. The delay counts up to a day, as a requestor may cap a longer one. */ static returnTimeout(applyDelay?: Duration): Duration; disarm(peerAddress: PeerAddress): void; [Symbol.dispose](): void; } //# sourceMappingURL=RebootResubscribeArmer.d.ts.map