Skip to content
File

Blob: src/cloudflare/internal/env.d.ts

typescript15 lines
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
6export function getCurrentEnv(): Record<string, unknown> | undefined;
7export function getCurrentExports(): Record<string, unknown> | undefined;
8export function withEnv(newEnv: unknown, fn: () => unknown): unknown;
9export function withExports(newExports: unknown, fn: () => unknown): unknown;
10export function withEnvAndExports(
11 newEnv: unknown,
12 newExports: unknown,
13 fn: () => unknown
14): unknown;