interface ImportMeta { readonly env: ImportMetaEnv } interface ImportMetaEnv { [key: string]: string | boolean | undefined BASE_URL: string MODE: string DEV: boolean PROD: boolean SSR: boolean } declare module '*?worker' { const workerConstructor: { new (): Worker } export default workerConstructor }