class ConnectionLoopDelegateImpl {
  rep;
  invokeSend;
  // TODO: Remove the ability to have more than one concurrent connection and update tests.
  // Bug: https://github.com/rocicorp/replicache-internal/issues/303
  maxConnections = 1;
  constructor(rep, invokeSend) {
    this.rep = rep;
    this.invokeSend = invokeSend;
  }
  get maxDelayMs() {
    return this.rep.requestOptions.maxDelayMs;
  }
  get minDelayMs() {
    return this.rep.requestOptions.minDelayMs;
  }
}
class PullDelegate extends ConnectionLoopDelegateImpl {
  debounceDelay = 0;
  get watchdogTimer() {
    return this.rep.pullInterval;
  }
}
class PushDelegate extends ConnectionLoopDelegateImpl {
  get debounceDelay() {
    return this.rep.pushDelay;
  }
  watchdogTimer = null;
}
export {
  PullDelegate,
  PushDelegate
};
//# sourceMappingURL=connection-loop-delegates.js.map
