/** * Augments the ESPRMMatterNode class with the `getServerClusters` method. */ declare module "../../ESPRMMatterNode" { interface ESPRMMatterNode { /** * Gets server cluster IDs exposed by this node. * * When `endpointId` is omitted, returns a sorted, de-duplicated list of all * server cluster IDs across every endpoint. When `endpointId` is provided, returns * only the server clusters on that endpoint (empty array if the endpoint is unknown). * * @param endpointId - Optional endpoint ID (`0` is root, `1+` are application endpoints). * @returns Sorted array of server cluster IDs. * * @example * ```typescript * const node = ESPRMMatterNode.fromMatterMetaData(nodeDetails); * * // All server clusters across endpoints (e.g. OnOff, BasicInformation, Descriptor) * const allClusters = await node.getServerClusters(); * * // Clusters on application endpoint 1 only * const endpoint1Clusters = await node.getServerClusters(1); * ``` */ getServerClusters(endpointId?: number): Promise; } } export {};