'use strict';

var chunkAGHRB4JF = require('./chunk-AGHRB4JF.js');

// src/utils/imperativeState.ts
var ImperativeState = class {
  /**
   * @param init - Function that creates the default state.
   */
  constructor(init) {
    this.init = init;
    this.records = this.init();
  }
  static {
    chunkAGHRB4JF.__name(this, "ImperativeState");
  }
  reset() {
    this.records = this.init();
  }
};

exports.ImperativeState = ImperativeState;
