/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Bytes, Crypto, EcdsaSignature } from "@matter/general"; import { TypeFromBitmapSchema, VendorId } from "@matter/types"; import { CertificationDeclaration as CertificationDeclarationDef } from "./definitions/certification-declaration.js"; /** A Matter Certification Declaration */ export declare class CertificationDeclaration { #private; /** * Parse a DER-encoded CMS/PKCS#7 SignedData structure containing a Certification Declaration. * * Extracts: * - The decoded CD content (TLV fields) * - The signer's subject key identifier * - The ECDSA signature * - The raw eContent bytes (signed data before TLV decoding) */ static parse(cdBytes: Bytes): { content: TypeFromBitmapSchema; signerSubjectKeyId: Bytes; signature: EcdsaSignature; signedData: Bytes; }; /** * Generator which is the main usage for the class from outside. * It constructs the class with the relevant details and returns a signed ASN.1 DER version of the CD. */ static generate(crypto: Crypto, vendorId: VendorId, productId: number, provisional?: boolean): Promise; constructor(content: TypeFromBitmapSchema, subjectKeyIdentifier: Bytes); /** * Returns the signed certificate in ASN.1 DER format. */ asSignedAsn1(crypto: Crypto, privateKey: JsonWebKey): Promise; } export declare namespace CertificationDeclaration { /** * Returns the well-known test CD signer's subject key identifier and public key. * * The public key is derived from the private key in Appendix F of the Matter 1.1 Core Specification. * Useful for validating Certification Declarations signed with the test signer. */ function testSignerInfo(): { subjectKeyId: Bytes; publicKey: Bytes; }; /** * Returns the well-known Matter test CD signer certificate (DER-encoded X.509). * Mirrored from CHIP's `credentials/development/cd-certs/Chip-Test-CD-Cert.der`. * Useful for injecting the test signer into `DclCertificateService.addCertificate` with * kind "CDSigner". */ function testSignerCertificate(): Bytes; } //# sourceMappingURL=CertificationDeclaration.d.ts.map