/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Duration, Timestamp } from "@matter/general"; /** * When a LIT (Long Idle Time) ICD peer is in Active Mode and when its next Check-In is due, derived from the peer's * timings and the activity the controller observed. * * The peer stays active for `activeModeDuration` after a Check-In (it sends one on entering Active Mode), for * `activeModeThreshold` after any other activity, and until a StayActive promise ends, whichever is last. Afterwards * it idles for at most `idleModeDuration` and checks in again. The peer is assumed not to back off its Check-Ins, as * the CHIP SDK's default back-off strategy does not. * * Callers pass the current time; the schedule holds no timers. * * @see {@link MatterSpecification.v161.Core} § 9.15.1.3.2.3 (Check-In cadence) * @see {@link MatterSpecification.v161.Core} § 9.16.6.2 (ActiveModeDuration) and § 9.16.6.3 (ActiveModeThreshold) */ export declare class IcdPeerSchedule { #private; /** * Slack on the Check-In deadline. A Check-In is an unreliable, unacknowledged sessionless message (no MRP, no * retransmission backoff), so this only covers the device's scheduling jitter. */ static readonly CHECK_IN_MARGIN: Duration; static readonly DEFAULT_TIMINGS: IcdPeerSchedule.Timings; get timings(): IcdPeerSchedule.Timings; set timings(timings: IcdPeerSchedule.Timings); /** End of the peer's estimated Active Mode, or undefined before any activity. */ get activeUntil(): Timestamp | undefined; /** Deadline of the peer's next Check-In, or undefined before any activity. */ get nextCheckInDue(): Timestamp | undefined; /** The longest the peer may idle before its next Check-In, with the Check-In margin. */ get idleWindow(): Duration; /** The peer sent a Check-In, entering Active Mode; its own `activeModeThreshold` overrides the configured one. */ noteCheckIn(now: Timestamp, activeModeThreshold?: Duration): void; /** The peer showed activity other than a Check-In. */ noteActive(now: Timestamp): void; /** The peer promised to stay active for `promised`. */ noteStayActive(now: Timestamp, promised: Duration): void; } export declare namespace IcdPeerSchedule { /** The peer's ICD timings, from its ICD Management cluster. */ interface Timings { activeModeThreshold: Duration; activeModeDuration: Duration; idleModeDuration: Duration; } } //# sourceMappingURL=IcdPeerSchedule.d.ts.map