import type { Env as BusinessEnv } from "../src/env.ts"; declare global { // Vite's glob import, used by the fixtures to read the real package JSON. interface ImportMeta { glob(pattern: string, options: { eager: true; import?: string; query?: string }): Record; // Lazily: the paths alone (the kit's pictures, by name), nothing imported. glob(pattern: string): Record Promise>; } } declare global { // `env` from cloudflare:test is typed as Cloudflare.Env; the Worker's bindings are that. namespace Cloudflare { // eslint-disable-next-line @typescript-eslint/no-empty-object-type interface Env extends BusinessEnv {} } }