/** One selectable option produced by a cluster param resolver. */ export interface ClusterParamOption { value: string; label: string; rawMode: number; } /** Resolver hooks for Matter attribute ↔ UI param conversion. */ export interface ClusterParamResolver { decodeOptions: (supportedModes: unknown) => ClusterParamOption[]; decodeValue: (rawValue: unknown, rawModes?: Record) => string; encodeValue: (uiValue: string, rawModes?: Record) => number | Record | null; } /** Component of the XY color pair an XY-backed hue/saturation param renders. */ export type XyColorComponent = "hue" | "saturation"; /** Declarative param definition inside a cluster registry entry. */ export interface ClusterParamDefinition { name: string; type: string; valueAttribute: number; optionsAttribute: number; uiType: string; dataType: string; resolver: ClusterParamResolver; /** RainMaker param properties; defaults to read+write on server clusters. */ properties?: string[]; /** UI control bounds and display hints merged into param `bounds`. */ meta?: Record; /** When true, {@link ESPRMMatterDeviceParam.setValue} invokes a Matter command instead of writing an attribute. */ writeAsCommand?: boolean; /** Matter command id for one-shot invoke params. */ matterCommandId?: number; /** * Marks a Color Control hue/saturation param as XY-capable. When attribute * gating would drop it (its HS `valueAttribute` is not advertised) but the * endpoint advertises the CurrentX/CurrentY pair (0x3/0x4) without either HS * attribute (0x0/0x1), the param compiles XY-backed instead: its value * derives from the (CurrentX, CurrentY) pair and writes invoke `MoveToColor` * — `resolver`/`matterCommandId` are bypassed on that backing. */ xyColorComponent?: XyColorComponent; } /** Registry entry for a Matter cluster that compiles to UI params. */ export interface ClusterRegistryEntry { clusterId: number; name: string; params: ClusterParamDefinition[]; /** Used when options attribute is not yet available in node params. */ defaultOptions?: ClusterParamOption[]; } /** App-provided cluster registry keyed by hex cluster id (e.g. `"0x54"`). */ export type ClusterConfigMap = Record; /** Placeholder UI value when a cluster value cannot be resolved yet. */ export declare const MATTER_PARAM_VALUE_UNKNOWN = "unknown";