declare module 'virtual:pwa-register/solid' { import type { PWATrustedScriptURL, RegisterSWOptions } from '@unplugin-pwa/core/types' // eslint-disable-next-line ts/ban-ts-comment // @ts-ignore ignore when solid-js is not installed import type { Accessor, Setter } from 'solid-js' export type { PWATrustedScriptURL, RegisterSWOptions } export function useRegisterSW(options?: RegisterSWOptions): { needRefresh: [Accessor, Setter] offlineReady: [Accessor, Setter] /** * Reloads the current window to allow the service worker take the control. */ updateServiceWorker: () => Promise } }