// @blocklet/sdk/lib/env shim
const env = {
  get appPid() { return (globalThis as any).__CF_ENV__?.APP_PID || ''; },
  get appName() { return (globalThis as any).__CF_ENV__?.APP_NAME || 'Payment Kit'; },
  get appUrl() { return (globalThis as any).__CF_ENV__?.APP_URL || ''; },
  get componentDid() { return (globalThis as any).__CF_ENV__?.COMPONENT_DID || ''; },
  get dataDir() { return '/tmp'; },
  get appId() { return (globalThis as any).__CF_ENV__?.APP_ID || ''; },
};

export { env };
export default env;
