/** * Augments the ESPRMMatterNode class with the `getClientClusters` method. */ declare module "../../ESPRMMatterNode" { interface ESPRMMatterNode { /** * Gets client cluster IDs exposed by this node. * * When `endpointId` is omitted, returns a sorted, de-duplicated list of all * client cluster IDs across every endpoint. When `endpointId` is provided, returns * only the client 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 client cluster IDs. * * @example * ```typescript * const node = ESPRMMatterNode.fromMatterMetaData(nodeDetails); * * // All client clusters across endpoints * const allClientClusters = await node.getClientClusters(); * * // Client clusters bound to endpoint 0 (root) * const rootClientClusters = await node.getClientClusters(0); * ``` */ getClientClusters(endpointId?: number): Promise; } } export {};