import { parseBooleanWithDefault } from "../boolean.js";
let alwaysConsistentFlag = null;
function parseAlwaysConsistentEnv(raw) {
  return parseBooleanWithDefault(raw, false);
}
function isReadProjectionAlwaysConsistent() {
  if (alwaysConsistentFlag !== null) return alwaysConsistentFlag;
  alwaysConsistentFlag = parseAlwaysConsistentEnv(process.env.OM_CACHE_SAFETY_ALWAYS_CONSISTENT);
  return alwaysConsistentFlag;
}
function __resetAlwaysConsistentCacheForTests() {
  alwaysConsistentFlag = null;
}
export {
  __resetAlwaysConsistentCacheForTests,
  isReadProjectionAlwaysConsistent,
  parseAlwaysConsistentEnv
};
//# sourceMappingURL=consistency.js.map
