import type { Ref } from 'vue' import type { UnwrapNestedRefs } from 'vue' export interface PwaInjection { isInstalled: boolean showInstallPrompt: Ref cancelInstall: () => void install: () => Promise swActivated: Ref registrationError: Ref needRefresh: Ref updateServiceWorker: (reloadPage?: boolean | undefined) => Promise close: () => Promise } declare module '#app' { interface NuxtApp { $pwa?: UnwrapNestedRefs } } declare module '@vue/runtime-core' { interface ComponentCustomProperties { $pwa?: UnwrapNestedRefs } } export {}