/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /** * Protocol ID for secure channels as per Matter specification. */ export declare const SECURE_CHANNEL_PROTOCOL_ID = 0; export declare enum SecureMessageType { /** * The Message Counter Synchronization Request message queries the current message counter from a peer to bootstrap * replay protection. */ MsgCounterSyncReq = 0, /** * The Message Counter Synchronization Response message provides the current message counter from a peer to * bootstrap replay protection. */ MsgCounterSyncRsp = 1, /** * This message is dedicated for the purpose of sending a stand-alone acknowledgement when there is no other data * message available to piggyback an acknowledgement on top of. */ StandaloneAck = 16, /** The request for PBKDF parameters necessary to complete the PASE protocol. */ PbkdfParamRequest = 32, /** The PBKDF parameters sent in response to PBKDFParamRequest during the PASE protocol. */ PbkdfParamResponse = 33, /** The first PAKE message of the PASE protocol. */ PasePake1 = 34, /** The second PAKE message of the PASE protocol. */ PasePake2 = 35, /** The third PAKE message of the PASE protocol. */ PasePake3 = 36, /** The first message of the CASE protocol. */ Sigma1 = 48, /** The second message of the CASE protocol. */ Sigma2 = 49, /** The third message of the CASE protocol. */ Sigma3 = 50, /** The second resumption message of the CASE protocol. */ Sigma2Resume = 51, /** The Status Report message encodes the result of an operation in the Secure Channel as well as other protocols. */ StatusReport = 64, /** The Check-in message notifies a client that the ICD is available for communication. */ IcdCheckInMessage = 80 } export declare enum SecureChannelStatusCode { /** Indication that the last session establishment message was successfully processed. */ Success = 0, /** Failure to find a common set of shared roots. */ NoSharedTrustRoots = 1, /** Generic failure during session establishment. */ InvalidParam = 2, /** Indication that the sender will close the current session. See Section “CloseSession” for more details. */ CloseSession = 3, /** Indication that the sender cannot currently fulfill the request. See Section “Busy” for more details. */ Busy = 4, /** * No additional error details available. */ GeneralError = 65535 } export declare namespace SecureMessageType { function isStandaloneAck(protocolId: number, messageType: number): boolean; /** * StatusReport messages are SecureChannel messages but may flow within an exchange of any protocol per Matter spec * 4.10 (Status Report Messages). */ function isStatusReport(protocolId: number, messageType: number): boolean; } //# sourceMappingURL=secure-channel.d.ts.map