/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { isObject } from "#util/Type.js";
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
  ChannelType2["UDP"] = "udp";
  ChannelType2["BLE"] = "ble";
  ChannelType2["TCP"] = "tcp";
  return ChannelType2;
})(ChannelType || {});
function isIpNetworkChannel(channel) {
  return isObject(channel?.networkAddress);
}
function sameIpNetworkChannel(channel1, channel2) {
  const { networkAddress: addr1 } = channel1;
  const { networkAddress: addr2 } = channel2;
  return addr1.type === addr2.type && addr1.ip === addr2.ip && addr1.port === addr2.port;
}
export {
  ChannelType,
  isIpNetworkChannel,
  sameIpNetworkChannel
};
//# sourceMappingURL=Channel.js.map
