import { _WEDA_CLOUD_SDK as WEDA_CLOUD_SDK, auth } from '@cloudbase/weda-client'
const {
  setConfig,
  initTcb,
  CLOUD_SDK,
  createDataset,
  createStateDataSourceVar,
  generateParamsParser,
  EXTRA_API,
  DS_SDK,
} = WEDA_CLOUD_SDK
const getAccessToken = auth.getAccessToken
const loginScope = auth.loginScope

export {
  createDataset,
  createStateDataSourceVar,
  generateParamsParser,
  EXTRA_API,
  CLOUD_SDK,
  DS_SDK,
  setConfig,
  getAccessToken,
  loginScope,
  initTcb,
}

import config from './config'

setConfig(config)
initTcb()
