import { defineUnimportPreset, Preset } from 'unimport' const commonPresets: Preset[] = [ // #head defineUnimportPreset({ from: '#head', imports: [ 'useHead', 'useMeta' ] }), // vue-demi (mocked) defineUnimportPreset({ from: 'vue-demi', imports: [ 'isVue2', 'isVue3' ] }) ] const appPreset = defineUnimportPreset({ from: '#app', imports: [ 'useAsyncData', 'useLazyAsyncData', 'refreshNuxtData', 'defineNuxtComponent', 'useNuxtApp', 'defineNuxtPlugin', 'useRuntimeConfig', 'useState', 'useFetch', 'useLazyFetch', 'useCookie', 'useRequestHeaders', 'useRequestEvent', 'setResponseStatus', 'setPageLayout', 'useRouter', 'useRoute', 'useActiveRoute', 'defineNuxtRouteMiddleware', 'navigateTo', 'abortNavigation', 'addRouteMiddleware', 'throwError', 'showError', 'clearError', 'isNuxtError', 'useError', 'createError', 'defineNuxtLink', 'useAppConfig', 'updateAppConfig', 'defineAppConfig', 'preloadComponents', 'prefetchComponents', 'loadPayload', 'preloadPayload', 'isPrerendered' ] }) // vue const vuePreset = defineUnimportPreset({ from: 'vue', imports: [ //