text: import { PluginPriority } from "../plugin";
  export class CompStateIOPlugin {
      constructor() {
          this.priority = PluginPriority.High;
      }
      wire(_, signature) {
          if (signature.states) {
              Object.entries(signature.states).forEach(([name, state]) => {
                  signature.inputs = signature.inputs || {};
                  signature.outputs = signature.outputs || {};
                  signature.inputs[name] = state;
                  signature.outputs[`on${name[0].toUpperCase() + name.substr(1)}Change`] = state;
              });
          }
      }
  }
  //# sourceMappingURL=state-io.js.map