import { Graph } from '@geoprotocol/geo-sdk';
let apiOrigin = null;
/**
 * Sets the API origin globally for all hypergraph API calls.
 * @param origin - The API origin URL (e.g., "https://api.mainnet.graphprotocol.io")
 */
export const setApiOrigin = origin => {
  apiOrigin = origin;
};
/**
 * Gets the configured API origin, or defaults to Graph.TESTNET_API_ORIGIN if not set.
 * @returns The API origin URL
 */
export const getApiOrigin = () => {
  if (apiOrigin) {
    return apiOrigin;
  }
  // Default to testnet
  return Graph.TESTNET_API_ORIGIN;
};
//# sourceMappingURL=config.js.map