File
Blob: src/cloudflare/internal/env.d.ts
| 1 | // Copyright (c) 2026 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | |
| 5 | // Get the current environment, if any |
| 6 | export function getCurrentEnv(): Record<string, unknown> | undefined; |
| 7 | export function getCurrentExports(): Record<string, unknown> | undefined; |
| 8 | export function withEnv(newEnv: unknown, fn: () => unknown): unknown; |
| 9 | export function withExports(newExports: unknown, fn: () => unknown): unknown; |
| 10 | export function withEnvAndExports( |
| 11 | newEnv: unknown, |
| 12 | newExports: unknown, |
| 13 | fn: () => unknown |
| 14 | ): unknown; |