/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Fabric } from "#fabric/Fabric.js"; import { MessageExchange } from "#protocol/MessageExchange.js"; import { NodeSession } from "#session/NodeSession.js"; import { SessionManager } from "#session/SessionManager.js"; import { SessionParameters } from "#session/SessionParameters.js"; import { Duration } from "@matter/general"; import { CaseAuthenticatedTag, NodeId } from "@matter/types"; export declare class CaseClient { #private; constructor(sessions: SessionManager); pair(exchange: MessageExchange, fabric: Fabric, peerNodeId: NodeId, options?: CaseClient.PairOptions): Promise<{ session: NodeSession; resumed: boolean; }>; } export declare namespace CaseClient { /** * Validates the peer's negotiated session parameters before the session is adopted. Invoked for both fresh and * resumed handshakes. Throwing aborts establishment; {@link CaseClient.pair} reports the failure to the peer as * InvalidParam. */ type ValidateSessionParameters = (peerSessionParameters: SessionParameters) => void; interface PairOptions { expectedProcessingTime?: Duration; caseAuthenticatedTags?: readonly CaseAuthenticatedTag[]; abort?: AbortSignal; maxInitialRetransmissions?: number; maxInitialRetransmissionTime?: Duration; initialRetransmissionTime?: Duration; /** {@link ExchangeSendOptions.retransmissionTimeLimit} for Sigma1. */ initialRetransmissionTimeLimit?: Duration; /** {@link ExchangeSendOptions.backoffOffset} for Sigma1. */ initialBackoffOffset?: number; validateSessionParameters?: ValidateSessionParameters; } } //# sourceMappingURL=CaseClient.d.ts.map