import { SdkCache as a, CodeGenUtil as o, Validate as r } from "@accelbyte/sdk";
import { Config as h } from "./accelbyte-widgets592.mjs";
class m {
  constructor(t, e, s = !1) {
    this.axiosInstance = t, this.namespace = e, this.cache = s;
  }
  getStaticConfig_ByConfig(t) {
    const e = {}, s = "/odin-config/v1/public/namespaces/{namespace}/staticConfigs/{config}".replace("{namespace}", this.namespace).replace("{config}", t), i = this.axiosInstance.get(s, { params: e }), c = () => r.responseType(() => i, h, "Config");
    if (!this.cache)
      return a.withoutCache(c);
    const n = s + o.hashCode(JSON.stringify({ params: e }));
    return a.withCache(n, c);
  }
}
export {
  m as StaticConfigs$
};
