import { identifyTenant as b } from "./helpers/identify-tenant.mjs";
function o(e) {
  return String(e).charAt(0).toUpperCase() + String(e).slice(1);
}
function S({
  owner: e,
  store: t,
  publicApis: n
}) {
  const c = o(e.toLowerCase()), s = `subscribe${c}`, p = `use${c}ReactiveState`;
  let i = { ...n };
  return t && (i = {
    [s]: t.subscribe.bind(t),
    [p]: t.useReactiveState.bind(t),
    ...n
  }), Object.keys(i).reduce((a, r) => (Object.defineProperty(a, r, {
    value: (...u) => {
      b(e, r);
      const d = i[r];
      return d?.(...u);
    }
  }), a), {});
}
export {
  S as defineApi
};
//# sourceMappingURL=public-api.mjs.map
