/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Duration } from "@matter/general"; export interface SessionIntervals { /** * Minimum amount of time between sender retries when the destination node is idle. This SHALL be greater than or * equal to the maximum amount of time a node may be non-responsive to incoming messages when idle. * * Default: 500ms */ idleInterval: Duration; /** * Minimum amount of time between sender retries when the destination node is active. This SHALL be greater than or * equal to the maximum amount of time a node may be non-responsive to incoming messages when active. * * Default: 300ms */ activeInterval: Duration; /** * Minimum amount of time the node SHOULD stay active after network activity. * * Default: 4000ms */ activeThreshold: Duration; } export declare function SessionIntervals(intervals?: Partial): SessionIntervals; export declare namespace SessionIntervals { const defaults: SessionIntervals; /** * Maximum SII/SAI the DNS-SD operational advertisement may carry. This bound is a property of the advertisement * encoding only; SII/SAI in the CASE/PASE session-parameter struct are uint32 and accepted unbounded. * * @see {@link MatterSpecification.v161.Core} § 4.3.4 */ const maxAdvertisedInterval: Duration; /** * Maximum Session Active Threshold. Unlike SII/SAI this bound applies everywhere: SAT is a uint16 millisecond * value both in the DNS-SD advertisement and in the CASE/PASE session-parameter struct. */ const maxActiveThreshold: Duration; /** * Resolve intervals for DNS-SD advertisement, clamping each to its spec maximum. Out-of-range values are reduced to * the maximum rather than rejected, matching the reference SDK. */ function forAdvertisement(intervals?: Partial): SessionIntervals; /** * Keep the intervals a DNS-SD advertisement can carry and drop the others. Undefined when none remains. * * @see {@link MatterSpecification.v161.Core} § 4.3.4 */ function advertisable(intervals: Partial): Partial | undefined; } //# sourceMappingURL=SessionIntervals.d.ts.map