import { ESPRMFabric } from "../../ESPRMFabric"; import { CreateFabricRequest } from "../../types/io/input"; /** * Augments the ESPRMUser class with the `createFabric` method to create new Matter fabrics. * This module extension adds the ability to create Matter-enabled groups with all necessary * Matter-specific credentials and configuration. */ declare module "@espressif/rainmaker-base-sdk/ESPRMUser" { interface ESPRMUser { /** * Creates a new Matter fabric with the given group information. * This method creates a root-level group specifically configured to support Matter devices * and provisioning. The group will be assigned Matter-specific credentials like Fabric ID, * IPK, and certificates for secure device communication. * * @param groupInfo - The group information for creating the Matter fabric * @param groupInfo.name - Name of the Matter fabric (required) * @param groupInfo.nodeIds - Optional array of node IDs to include in the group * @param groupInfo.description - Optional description for the fabric * @param groupInfo.type - Optional type of the group * @param groupInfo.customData - Optional custom metadata following ThingShadow JSON rules * @param groupInfo.mutuallyExclusive - Optional boolean indicating if the group is mutually exclusive * @param groupInfo.metadata - Optional group metadata to be stored with the fabric * @returns A promise that resolves to a fully populated ESPRMFabric instance * @throws ESPRMError if the fabric creation fails or group name already exists */ createFabric(groupInfo: CreateFabricRequest): Promise; } }