/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { STANDARD_MATTER_PORT } from "@matter/general";
import { Behavior } from "../../Behavior.js";
class NetworkBehavior extends Behavior {
  static id = "network";
  static early = true;
  [Symbol.asyncDispose]() {
    return this.internal.runtime?.close();
  }
  /**
   * Invoked by node when networking is ready.
   */
  startup() {
  }
}
((NetworkBehavior2) => {
  class Internal {
    runtime;
  }
  NetworkBehavior2.Internal = Internal;
  class State {
    port = STANDARD_MATTER_PORT;
    operationalPort = -1;
  }
  NetworkBehavior2.State = State;
})(NetworkBehavior || (NetworkBehavior = {}));
export {
  NetworkBehavior
};
//# sourceMappingURL=NetworkBehavior.js.map
