import { Enum } from "./enum"; declare type AttributeName = string; declare type AttributeID = number; declare type AttributeType = DataTypeNames; declare type CommandName = string; declare type CommandID = number; declare type CommandResponseName = string; declare type CommandResponseID = number; interface NewFormatCluster { /** * key: Attribute Name, value: numeric ID * * example: `{ key: "modelId", value: 5 }` */ attr: Enum; /** * key: Attribute Name, value: DataType Name * * example: `{ key: "uint8", value: 32 }` */ attrType: Enum; /** * key: Functional Command Name, value: numeric ID * * example: `{ key: "view", value: 1 }` */ cmd?: Enum; /** * key: Functional Command Response Name, value: numeric ID * * example: `{ key: "viewRsp", value: 1 }` */ cmdRsp?: Enum; } declare type DataTypeNames = string; export interface CommonJSON { aclMask: Record; profileId: Record; direction: Record; cmdDirection: Record; haDevId: Record; dataType: Record; status: Record; otaStatus: Record; } export declare type FoundationJSON = Record; export interface CompleteClusterDefJSON { id: number; attrs?: Record; cmd?: Record; cmdRsp?: Record; TODO: undefined; } export interface IncompleteClusterDefJSON { id: number; TODO: 2; } declare type ClusterDefJSON = CompleteClusterDefJSON | IncompleteClusterDefJSON; export declare type ClustedDefsJSON = Record; export declare class ZclID { private common; private _foundation; private clusterDefs; constructor(common: CommonJSON, _foundation: FoundationJSON, clusterDefs: ClustedDefsJSON); zclmeta: { foundation: { get: (cmd: string) => { id: number; params: [string, string][]; TODO: undefined; } | undefined; getParams: (cmd: string) => { name: string; type: string; }[] | undefined; }; functional: { get: (cluster: string, cmdName: string) => { dir: 0 | 1; id: number; params: [string, string][]; TODO: undefined; } | undefined; getCommand: (cluster: string, dir: 0 | 1, cmd: string) => import("./enum").EnumItem | undefined; getDirection: (cluster: string, cmd: string) => "clientToServer" | "serverToClient" | undefined; getParams: (cluster: string, cmdName: string) => { name: string; type: string; }[] | undefined; }; }; /** * The Zigbee profile ID lookup * * key: 2-letter profile name, value: numeric ID * * example: `{ key: "HA", value: 260 }` */ profileId: Enum; /** * The foundation command ID lookup * * key: 2-letter profile name, value: numeric ID * * example: `{ key: "read", value: 0 }` */ foundationId: Enum; /** * The datatype ID lookup * * key: DataType name, value: numeric ID * * example: `{ key: "uint8", value: 32 }` */ dataTypeId: Enum; /** * The status ID lookup * * key: status name, value: numeric ID * * example: `{ key: "success", value: 0 }` */ statusId: Enum; /** * The OTA update status ID lookup * * key: status name, value: numeric ID * * example: `{ key: "ABORT", value: 149 }` */ otaStatusId: Enum; /** * The cluster ID lookup * * key: status name, value: numeric ID * * example: `{ key: "genOnOff", value: 6 }` */ clusterId: Enum; /** * Zigbee device ID lookups, per profile name */ deviceId: { HA: Enum; [key: string]: Enum; }; private newFormatClusters; _getCluster(cluster: string): NewFormatCluster | undefined; /** * Get cluster description by name|id|id as string */ private getClusterDescription; /** * Get profile entry by name|id|id as string * * example: `{ key: 'HA', value: 260 }` * */ profile(profId: string | number): import("./enum").EnumItem | undefined; /** * Get device entry of profile by two name|id|id as string * * example: `{ key: "onOffOutput", value: 2 }` * */ device(profId: string | number, devId: string | number): import("./enum").EnumItem | undefined; /** * Get cluster entry by name|id|id as string * * example: `{ key: "genOnOff", value: 6 }` * */ cluster(cId: string | number): import("./enum").EnumItem | undefined; /** * Get foundation command entry by name|id|id as string * * example: `{ key: "read", value: 0 }` * */ foundation(cmdId: string | number): import("./enum").EnumItem | undefined; /** * Get functional command entry of cluster by two name|id|id as string * * example: `{ key: "view", value: 1 }` * */ functional(cId: string | number, cmdId: string | number): import("./enum").EnumItem | undefined; /** * Get functional (command) response entry of cluster by two name|id|id as string * * example: `{ key: "viewRsp", value: 1 }` * */ getCmdRsp(cId: string | number, rspId: string | number): import("./enum").EnumItem | undefined; /** * Get an array of all attributes, with numeric ID and numeric type of cluster by name|id|id as string * */ attrList(cId: string | number): { attrId: number; dataType: number; }[] | undefined; /** * Get an attribute entry, with numeric ID and numeric type of cluster by two name|id|id as string * * example: `{ key: "modelId", value: 5 }` * */ attr(cId: string | number, attrId: string | number): import("./enum").EnumItem | undefined; /** * Get the type entry of an attribute by two name|id|id as string * * example: `{ key: "uint8", value: 32 }` * */ attrType(cId: string | number, attrId: string | number): import("./enum").EnumItem | undefined; /** * Get a dataType entry by name|id|id as string * * example: `{ key: "uint8", value: 32 }` * */ dataType(type: string | number): import("./enum").EnumItem | undefined; /** * Get a status entry by name|id|id as string * * example: `{ key: "genOnOff", value: 6 }` * */ status(status: string | number): import("./enum").EnumItem | undefined; /** * Get a OTA update status entry by name|id|id as string * * example: `{ key: "ABORT", value: 149 }` * */ otaStatus(otaStatus: string | number): import("./enum").EnumItem | undefined; } export {};