import { ESPRMMatterMetadataInterface } from "../../types/node/api"; /** * Augments the ESPRMMatterNode class with the `getMatterMetadata` method. */ declare module "../../ESPRMMatterNode" { interface ESPRMMatterNode { /** * Returns the raw Matter metadata payload from the RainMaker API (`metadata.Matter`). * * The metadata includes endpoint/cluster layout, device name, device type, and * flags such as `isRainmaker`. Use it to distinguish RainMaker-linked Matter nodes * from pure Matter nodes when choosing UX and confirmation behaviour. * * @returns The Matter metadata object, or `undefined` if the node has no Matter data. * * @example * ```typescript * const node = ESPRMMatterNode.fromMatterMetaData(nodeDetails); * * const metadata = await node.getMatterMetadata(); * if (metadata?.isRainmaker === false) { * // Pure Matter device — skip RainMaker-specific confirmation flows. * } * * console.log(metadata?.deviceName, metadata?.deviceType); * ``` */ getMatterMetadata(): Promise; } }