import type { VueConstructor } from 'vue'

interface ApiOptions {
  DgJsonStore: () => void
  downUrl: () => void
  downloadFile: () => void
}

export default {
  install: (Vue: VueConstructor, options: ApiOptions) => {
    // eslint-disable-next-line @typescript-eslint/no-empty-function
    function api() {}
    for (const key in options) {
      api[key] = options[key]
    }
    Vue.prototype.$api = api
  },
}
