import { ESPRMIssueNodeNoCRequest } from "../../types/io/input"; import { ESPRMMatterCommissioningRequest } from "../../ESPRMMatterCommissioningRequest"; /** * Augments the ESPRMFabric class with the `issueNodeNoC` method to request Matter node certificates. * This module extension adds the ability to issue Node Operational Certificates (NoCs) for Matter devices * using Certificate Signing Requests (CSR) obtained from app-level adapters during commissioning. */ declare module "../../ESPRMFabric" { interface ESPRMFabric { /** * Issues a Matter Node Operational Certificate (NoC) for this fabric using the configured adapter. * This method coordinates with the Matter commissioning adapter to: * 1. Generate CSR using native secure storage (if CSR not provided) * 2. Call the Matter SDK API to issue the NoC * 3. Send the response data back to native platform * * @param request - The request containing CSR and optional metadata for the Matter node * @param request.csr - Base64-encoded CSR string (if empty, will be generated via adapter) * @param request.tags - Optional array of strings in key:value format for device categorization * @param request.metadata - Optional key-value object for node-specific metadata * @returns A promise that resolves to an ESPRMMatterCommissioningRequest instance * @throws Error if adapter is not configured or CSR generation fails * @throws ESPRMError if the NoC issuance fails */ issueNodeNoC(request: ESPRMIssueNodeNoCRequest): Promise; } }