"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var types_exports = {};
__export(types_exports, {
  DEFAULT_API_CONNECT_OPTIONS: () => DEFAULT_API_CONNECT_OPTIONS,
  DEFAULT_SESSION_CONNECT_OPTIONS: () => DEFAULT_SESSION_CONNECT_OPTIONS,
  FlushSentinel: () => FlushSentinel,
  USERDATA_TIMED_TRANSCRIPT: () => USERDATA_TIMED_TRANSCRIPT,
  intervalForRetry: () => intervalForRetry,
  isFlushSentinel: () => isFlushSentinel
});
module.exports = __toCommonJS(types_exports);
const USERDATA_TIMED_TRANSCRIPT = "lk.timed_transcripts";
const FlushSentinel = Symbol.for("lk.FlushSentinel");
function isFlushSentinel(value) {
  return value === FlushSentinel;
}
const DEFAULT_API_CONNECT_OPTIONS = {
  maxRetry: 3,
  retryIntervalMs: 2e3,
  timeoutMs: 1e4
};
function intervalForRetry(connOptions, numRetries) {
  if (numRetries === 0) {
    return 0.1;
  }
  return connOptions.retryIntervalMs;
}
const DEFAULT_SESSION_CONNECT_OPTIONS = {
  sttConnOptions: DEFAULT_API_CONNECT_OPTIONS,
  llmConnOptions: DEFAULT_API_CONNECT_OPTIONS,
  ttsConnOptions: DEFAULT_API_CONNECT_OPTIONS,
  maxUnrecoverableErrors: 3
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  DEFAULT_API_CONNECT_OPTIONS,
  DEFAULT_SESSION_CONNECT_OPTIONS,
  FlushSentinel,
  USERDATA_TIMED_TRANSCRIPT,
  intervalForRetry,
  isFlushSentinel
});
//# sourceMappingURL=types.cjs.map