/**
 * @license
 * Copyright 2025-2026 Open Home Foundation
 * SPDX-License-Identifier: Apache-2.0
 */
function formatNodeId(arg, fabricIndex) {
  const [nodeId, resolvedFabricIndex] = typeof arg === "object" ? [arg.nodeId, arg.fabricIndex] : [arg, fabricIndex];
  const fabricIndexPart = resolvedFabricIndex === void 0 ? "?" : resolvedFabricIndex.toString(10);
  return `@${fabricIndexPart}:${nodeId.toString(16)}`;
}
export {
  formatNodeId
};
//# sourceMappingURL=formatNodeId.js.map
