// `@cloudflare/workers-types` declares this module, but pulling it in would also add Workers globals // that clash with the DOM lib the client half of this package is checked against. Only the export // the SDK reads is declared here; the declaration is build-time only and never emitted. declare module 'cloudflare:workers' { // workerd versions from before March 2025 have no `withEnv`. export const withEnv: ((env: unknown, callback: () => T) => T) | undefined; }