/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Duration } from "@matter/general"; /** * Per-client ICD Check-In back-off. Consulted once per idle→active wake for each Permanent registration. Keyed by * `${fabricIndex}:${checkInNodeId}`. * * @see {@link MatterSpecification.v161.Core} § 9.15.1, § 9.16.6.10 */ export interface IcdCheckInBackOff { /** True when a Check-In is due for this client this wake. Advances the per-wake countdown — call exactly once per wake. */ shouldSend(key: string): boolean; /** Record that a Check-In was attempted this wake (advances the schedule). */ recordSent(key: string): void; /** The client interacted (became covered by an active subscription) — reset to immediate. */ recordAnswered(key: string): void; /** User Active Mode Trigger — reset all clients to immediate (spec-mandatory). */ resetAll(): void; /** Drop a client's state (registration removed). */ forget(key: string): void; } /** * Default back-off: send on wake, then skip a doubling number of idle cycles (1,2,4,…) capped so the interval never * exceeds `maximumCheckInBackoff`. When `maximumCheckInBackoff === idleModeDuration` the cap is one cycle, i.e. no * back-off (a Check-In every wake). */ export declare class DoublingCheckInBackOff implements IcdCheckInBackOff { #private; constructor(idleModeDuration: Duration, maximumCheckInBackoff: Duration); shouldSend(key: string): boolean; recordSent(key: string): void; recordAnswered(key: string): void; resetAll(): void; forget(key: string): void; } //# sourceMappingURL=IcdCheckInBackOff.d.ts.map