/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { SessionManager } from "#session/SessionManager.js"; import { SessionParameters } from "#session/SessionParameters.js"; import { Bytes, Channel, Crypto, PbkdfParameters, UnexpectedDataError } from "@matter/general"; import { MessageExchange } from "../../protocol/MessageExchange.js"; /** * The responder's key confirmation (Pake2 cB) does not verify: the passcode is wrong for the device at this address, or * a stale address reached another device in commissioning mode. * * @see {@link MatterSpecification.v161.Core} ยง 4.14.1.2.7 */ export declare class PasscodeMismatchError extends UnexpectedDataError { } export declare class PaseClient { #private; constructor(sessions: SessionManager); static generatePakePasscodeVerifier(crypto: Crypto, setupPinCode: number, pbkdfParameters: PbkdfParameters): Promise; static generateRandomPasscode(crypto: Crypto): number; static generateRandomDiscriminator(crypto: Crypto): number; pair(initiatorSessionParams: SessionParameters, exchange: MessageExchange, channel: Channel, setupPin: number, options?: PaseClient.PairOptions): Promise; } export declare namespace PaseClient { interface PairOptions { abort?: AbortSignal; /** @see {@link NodeSession.suppressPeerLoss} */ suppressPeerLoss?: boolean; /** Called once the responder has answered the PBKDFParamRequest. */ onPbkdfParamResponse?: () => void; } } //# sourceMappingURL=PaseClient.d.ts.map