@cloudflare/workers-utils 0.12.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,7 +1,9 @@
1
- import { B as Binding, R as RawConfig, C as Config, W as WorkerMetadataBinding } from './config-BQZJPwXe.mjs';
2
- export { am as AssetConfigMetadata, A as Assets, ar as BinaryFile, q as CacheOptions, H as CfAIBinding, a4 as CfAnalyticsEngineDataset, a9 as CfAssetsBinding, G as CfBrowserBinding, ac as CfCapnp, V as CfD1Database, L as CfDataBlobBindings, a5 as CfDispatchNamespace, M as CfDurableObject, ae as CfDurableObjectMigrations, _ as CfHelloWorld, a1 as CfHyperdrive, I as CfImagesBinding, x as CfKvNamespace, a7 as CfLogfwdr, a8 as CfLogfwdrBinding, a6 as CfMTlsCertificate, J as CfMediaBinding, v as CfModule, u as CfModuleType, aa as CfPipeline, af as CfPlacement, P as CfQueue, Q as CfR2Bucket, a0 as CfRateLimit, t as CfScriptFormat, Y as CfSecretsStoreSecrets, y as CfSendEmailBindings, a2 as CfService, ag as CfTailConsumer, F as CfTextBlobBindings, ad as CfUnsafe, ab as CfUnsafeBinding, ah as CfUserLimits, w as CfVars, X as CfVectorize, K as CfVersionMetadataBinding, a3 as CfVpcService, z as CfWasmModuleBindings, aj as CfWorkerContext, ai as CfWorkerInit, $ as CfWorkerLoader, ak as CfWorkerSourceMap, N as CfWorkflow, i as CloudchamberConfig, c as ConfigFields, o as ConfigModuleRuleType, j as ContainerApp, s as ContainerEngine, g as CustomDomainRoute, p as DispatchNamespaceOutbound, r as DockerConfiguration, k as DurableObjectBindings, D as DurableObjectMigration, av as ENVIRONMENT_TAG_PREFIX, E as Environment, m as EnvironmentNonInheritable, aq as File, at as INHERIT_SYMBOL, ax as JSON_CONFIG_FORMATS, al as Json, O as Observability, aw as PATH_TO_DEPLOY_CONFIG, b as RawDevConfig, d as RawEnvironment, a as RedirectedRawConfig, h as Route, n as Rule, au as SERVICE_TAG_PREFIX, ap as ServiceFetch, ao as ServiceMetadataRes, S as StreamingTailConsumer, T as TailConsumer, as as Trigger, U as UserLimits, an as WorkerMetadata, l as WorkflowBinding, Z as ZoneIdRoute, f as ZoneNameRoute, e as defaultWranglerConfig } from './config-BQZJPwXe.mjs';
1
+ import { B as Binding, R as RawConfig, C as Config, W as WorkerMetadataBinding } from './config-CnJQHRQs.mjs';
2
+ export { at as AssetConfigMetadata, A as Assets, ay as BinaryFile, q as CacheOptions, H as CfAIBinding, a0 as CfAISearch, $ as CfAISearchNamespace, ab as CfAnalyticsEngineDataset, a2 as CfArtifacts, ag as CfAssetsBinding, G as CfBrowserBinding, aj as CfCapnp, Y as CfD1Database, M as CfDataBlobBindings, ac as CfDispatchNamespace, N as CfDurableObject, al as CfDurableObjectMigrations, a4 as CfFlagship, a3 as CfHelloWorld, a7 as CfHyperdrive, I as CfImagesBinding, x as CfKvNamespace, ae as CfLogfwdr, af as CfLogfwdrBinding, ad as CfMTlsCertificate, J as CfMediaBinding, v as CfModule, u as CfModuleType, ah as CfPipeline, am as CfPlacement, V as CfQueue, X as CfR2Bucket, a6 as CfRateLimit, t as CfScriptFormat, a1 as CfSecretsStoreSecrets, y as CfSendEmailBindings, a8 as CfService, K as CfStreamBinding, an as CfTailConsumer, F as CfTextBlobBindings, ak as CfUnsafe, ai as CfUnsafeBinding, ao as CfUserLimits, w as CfVars, _ as CfVectorize, L as CfVersionMetadataBinding, aa as CfVpcNetwork, a9 as CfVpcService, z as CfWasmModuleBindings, aq as CfWorkerContext, ap as CfWorkerInit, a5 as CfWorkerLoader, ar as CfWorkerSourceMap, Q as CfWorkflow, i as CloudchamberConfig, c as ConfigFields, o as ConfigModuleRuleType, j as ContainerApp, s as ContainerEngine, g as CustomDomainRoute, p as DispatchNamespaceOutbound, r as DockerConfiguration, k as DurableObjectBindings, D as DurableObjectMigration, aC as ENVIRONMENT_TAG_PREFIX, E as Environment, m as EnvironmentNonInheritable, ax as File, aA as INHERIT_SYMBOL, aE as JSON_CONFIG_FORMATS, as as Json, O as Observability, aD as PATH_TO_DEPLOY_CONFIG, P as PreviewsConfig, b as RawDevConfig, d as RawEnvironment, a as RedirectedRawConfig, h as Route, n as Rule, aB as SERVICE_TAG_PREFIX, aw as ServiceFetch, av as ServiceMetadataRes, S as StreamingTailConsumer, T as TailConsumer, az as Trigger, U as UserLimits, au as WorkerMetadata, l as WorkflowBinding, Z as ZoneIdRoute, f as ZoneNameRoute, e as defaultWranglerConfig } from './config-CnJQHRQs.mjs';
3
3
  import * as jsoncParser from 'jsonc-parser';
4
4
  export { constructWranglerConfig } from './browser.mjs';
5
+ export { Counter, MetricsRegistry } from './prometheus-metrics.mjs';
6
+ import { ChildProcess } from 'node:child_process';
5
7
  import '@cloudflare/workers-shared';
6
8
  import 'cloudflare';
7
9
 
@@ -49,6 +51,8 @@ declare class Diagnostics {
49
51
  errors: string[];
50
52
  warnings: string[];
51
53
  children: Diagnostics[];
54
+ /** Set to true when an unexpected/unknown field is encountered during validation. */
55
+ hasUnexpectedFields: boolean;
52
56
  /**
53
57
  * Create a new Diagnostics object.
54
58
  * @param description A general description of this collection of messages.
@@ -60,6 +64,8 @@ declare class Diagnostics {
60
64
  addChild(diagnostics: Diagnostics): void;
61
65
  /** Does this or any of its children have errors. */
62
66
  hasErrors(): boolean;
67
+ /** Does this or any of its children have unexpected fields. */
68
+ hasUnexpectedFieldsInTree(): boolean;
63
69
  /** Render the errors of this and all its children. */
64
70
  renderErrors(): string;
65
71
  /** Does this or any of its children have warnings. */
@@ -83,7 +89,7 @@ declare const bucketFormatMessage = "Bucket names must begin and end with an alp
83
89
  * Config field names for bindings (e.g., "kv_namespaces", "d1_databases").
84
90
  * These are the keys used in Wrangler's config file
85
91
  */
86
- type ConfigBindingFieldName = "data_blobs" | "durable_objects" | "kv_namespaces" | "send_email" | "queues" | "d1_databases" | "vectorize" | "hyperdrive" | "r2_buckets" | "logfwdr" | "services" | "analytics_engine_datasets" | "text_blobs" | "browser" | "ai" | "images" | "media" | "version_metadata" | "unsafe" | "vars" | "wasm_modules" | "dispatch_namespaces" | "mtls_certificates" | "workflows" | "pipelines" | "secrets_store_secrets" | "ratelimits" | "assets" | "unsafe_hello_world" | "worker_loaders" | "vpc_services";
92
+ type ConfigBindingFieldName = "data_blobs" | "durable_objects" | "kv_namespaces" | "send_email" | "queues" | "d1_databases" | "vectorize" | "ai_search_namespaces" | "ai_search" | "hyperdrive" | "r2_buckets" | "logfwdr" | "services" | "analytics_engine_datasets" | "text_blobs" | "browser" | "ai" | "images" | "stream" | "media" | "version_metadata" | "unsafe" | "vars" | "wasm_modules" | "dispatch_namespaces" | "mtls_certificates" | "workflows" | "pipelines" | "secrets_store_secrets" | "artifacts" | "ratelimits" | "assets" | "unsafe_hello_world" | "flagship" | "worker_loaders" | "vpc_services" | "vpc_networks";
87
93
  /**
88
94
  * @deprecated new code should use getBindingTypeFriendlyName() instead
89
95
  */
@@ -133,6 +139,8 @@ declare function normalizeAndValidateConfig(rawConfig: RawConfig, configPath: st
133
139
  */
134
140
  declare function isDockerfile(imagePath: string, configPath: string | undefined): boolean;
135
141
 
142
+ type ConfigBindingOptions = Pick<Config, "ai" | "browser" | "d1_databases" | "dispatch_namespaces" | "durable_objects" | "queues" | "r2_buckets" | "services" | "kv_namespaces" | "mtls_certificates" | "vectorize" | "workflows" | "vpc_services">;
143
+
136
144
  declare function configFormat(configPath: string | undefined): "json" | "jsonc" | "toml" | "none";
137
145
  declare function configFileName(configPath: string | undefined): "wrangler.json" | "wrangler.jsonc" | "wrangler.toml" | "Wrangler configuration";
138
146
  declare function formatConfigSnippet(snippet: RawConfig, configPath: Config["configPath"], formatted?: boolean): string;
@@ -174,7 +182,11 @@ declare class PatchConfigError extends Error {
174
182
  * Set to `true` to duplicate `message`.
175
183
  * */
176
184
  type TelemetryMessage = {
177
- telemetryMessage?: string | true;
185
+ telemetryMessage: string | boolean;
186
+ };
187
+ type UserErrorOptions = ErrorOptions & TelemetryMessage;
188
+ type FatalErrorOptions = UserErrorOptions & {
189
+ code?: number;
178
190
  };
179
191
  /**
180
192
  * Base class for errors where the user has done something wrong. These are not
@@ -184,14 +196,14 @@ type TelemetryMessage = {
184
196
  */
185
197
  declare class UserError extends Error {
186
198
  telemetryMessage: string | undefined;
187
- constructor(message?: string | undefined, options?: (ErrorOptions & TelemetryMessage) | undefined);
199
+ constructor(message: string, options: UserErrorOptions);
188
200
  }
189
201
  declare class DeprecationError extends UserError {
190
- constructor(message: string, options?: TelemetryMessage);
202
+ constructor(message: string, options: TelemetryMessage);
191
203
  }
192
204
  declare class FatalError extends UserError {
193
- readonly code?: number | undefined;
194
- constructor(message?: string, code?: number | undefined, options?: TelemetryMessage);
205
+ readonly code: number | undefined;
206
+ constructor(message: string, options: FatalErrorOptions);
195
207
  }
196
208
  declare class CommandLineArgsError extends UserError {
197
209
  }
@@ -200,12 +212,12 @@ declare class CommandLineArgsError extends UserError {
200
212
  *
201
213
  * To use, pass stringify'd json into the constructor like so:
202
214
  * ```js
203
- * throw new JsonFriendlyFatalError(JSON.stringify({ error: messageToDisplay });
215
+ * throw new JsonFriendlyFatalError(JSON.stringify({ error: messageToDisplay }), {
216
+ * telemetryMessage: false,
217
+ * });
204
218
  * ```
205
219
  */
206
220
  declare class JsonFriendlyFatalError extends FatalError {
207
- readonly code?: number | undefined;
208
- constructor(message?: string, code?: number | undefined, options?: TelemetryMessage);
209
221
  }
210
222
  declare class MissingConfigError extends Error {
211
223
  telemetryMessage: string | undefined;
@@ -216,14 +228,15 @@ declare class MissingConfigError extends Error {
216
228
  *
217
229
  * If `isJson` is true, then the `message` is JSON stringified.
218
230
  */
219
- declare function createFatalError(message: unknown, isJson: boolean, code?: number, telemetryMessage?: TelemetryMessage): Error;
231
+ declare function createFatalError(message: unknown, isJson: boolean, options: FatalErrorOptions): Error;
220
232
 
221
233
  type Message = {
222
234
  text: string;
223
235
  location?: Location;
224
236
  notes?: Message[];
225
237
  kind?: "warning" | "error";
226
- } & TelemetryMessage;
238
+ };
239
+ type MessageInit = Message & TelemetryMessage;
227
240
  type Location = ParseFile & {
228
241
  line: number;
229
242
  column: number;
@@ -243,15 +256,16 @@ declare class ParseError extends UserError implements Message {
243
256
  readonly notes: Message[];
244
257
  readonly location?: Location;
245
258
  readonly kind: "warning" | "error";
246
- constructor({ text, notes, location, kind, telemetryMessage }: Message);
259
+ constructor({ text, notes, location, kind, telemetryMessage }: MessageInit);
247
260
  }
248
261
  declare class APIError extends ParseError {
249
262
  #private;
250
263
  code?: number;
251
264
  accountTag?: string;
252
- constructor({ status, ...rest }: Message & {
265
+ constructor({ status, ...rest }: MessageInit & {
253
266
  status?: number;
254
267
  });
268
+ get status(): number | undefined;
255
269
  isGatewayError(): boolean;
256
270
  isRetryable(): boolean;
257
271
  get reportable(): boolean;
@@ -432,6 +446,8 @@ type VariableNames =
432
446
  | "CLOUDFLARE_ENV"
433
447
  /** Custom directory for Wrangler's cache files (overrides `node_modules/.cache/wrangler`). */
434
448
  | "WRANGLER_CACHE_DIR"
449
+ /** Custom path to cloudflared binary (overrides automatic binary management). */
450
+ | "CLOUDFLARED_PATH"
435
451
  /** Set to "staging" to use staging APIs instead of production. */
436
452
  | "WRANGLER_API_ENVIRONMENT"
437
453
  /** Custom auth domain (usually auto-configured). */
@@ -446,8 +462,14 @@ type VariableNames =
446
462
  | "WRANGLER_REVOKE_URL"
447
463
  /** Direct authorization token for API requests. */
448
464
  | "WRANGLER_CF_AUTHORIZATION_TOKEN"
465
+ /** Cloudflare Access Service Token Client ID. Used to authenticate with Access-protected domains in non-interactive environments (e.g. CI). */
466
+ | "CLOUDFLARE_ACCESS_CLIENT_ID"
467
+ /** Cloudflare Access Service Token Client Secret. Used with CLOUDFLARE_ACCESS_CLIENT_ID. */
468
+ | "CLOUDFLARE_ACCESS_CLIENT_SECRET"
449
469
  /** Enable the local explorer UI at /cdn-cgi/explorer (experimental, default: false). */
450
470
  | "X_LOCAL_EXPLORER"
471
+ /** Open the browser in headful (visible) mode when using the Browser Run API in local dev (default: false). */
472
+ | "X_BROWSER_HEADFUL"
451
473
  /** Override command used by `wrangler init` (default: "create cloudflare"). */
452
474
  | "WRANGLER_C3_COMMAND"
453
475
  /** Enable/disable telemetry data collection. */
@@ -694,9 +716,23 @@ declare const getCloudflareEnv: () => string | undefined;
694
716
  declare const getOpenNextDeployFromEnv: () => string | undefined;
695
717
  /**
696
718
  * `X_LOCAL_EXPLORER` enables the local explorer UI at /cdn-cgi/explorer.
697
- * This is an experimental feature flag. Defaults to false when not set.
698
719
  */
699
720
  declare const getLocalExplorerEnabledFromEnv: () => boolean;
721
+ /**
722
+ * `X_BROWSER_HEADFUL` opens the browser in headful (visible) mode when using the
723
+ * Browser Run API in local development.
724
+ *
725
+ * Set to "true" to enable:
726
+ *
727
+ * ```sh
728
+ * X_BROWSER_HEADFUL=true vite dev
729
+ * ```
730
+ *
731
+ * Note: when using `@cloudflare/playwright`, two Chrome windows may appear — the initial blank
732
+ * page and the one created by `browser.newPage()`. This is expected due to how Playwright handles
733
+ * browser contexts via CDP.
734
+ */
735
+ declare const getBrowserRenderingHeadfulFromEnv: () => boolean;
700
736
  /**
701
737
  * `CLOUDFLARE_CF_FETCH_ENABLED` controls whether Miniflare fetches the `cf.json` file
702
738
  * containing request.cf properties from workers.cloudflare.com.
@@ -733,6 +769,13 @@ declare const getCfFetchPathFromEnv: () => string | undefined;
733
769
  * Useful for Yarn PnP or projects without node_modules.
734
770
  */
735
771
  declare const getWranglerCacheDirFromEnv: () => string | undefined;
772
+ /**
773
+ * `CLOUDFLARED_PATH` specifies a custom path to a cloudflared binary.
774
+ *
775
+ * If set, Wrangler will use this cloudflared binary instead of downloading one.
776
+ * The path must point to an existing executable file.
777
+ */
778
+ declare const getCloudflaredPathFromEnv: () => string | undefined;
736
779
 
737
780
  declare function getGlobalWranglerConfigPath(): string;
738
781
 
@@ -743,24 +786,6 @@ type DD = `${number}${number}`;
743
786
  * Represents a valid compatibility date, a string such as `2025-09-27`
744
787
  */
745
788
  type CompatDate = `${YYYY}-${MM}-${DD}`;
746
- type GetCompatDateOptions = {
747
- projectPath?: string;
748
- };
749
- type GetCompatDateResult = {
750
- date: CompatDate;
751
- source: "workerd" | "fallback";
752
- };
753
- /**
754
- * Gets the compatibility date of the locally installed workerd package.
755
- *
756
- * If the package is not found the fallback date of 2025-09-27 is returned instead.
757
- *
758
- * Additionally, if the workerd date is set to the future then the current date is returned instead.
759
- *
760
- * @param options.projectPath the path to the project
761
- * @returns an object including the compatibility date and its source
762
- */
763
- declare function getLocalWorkerdCompatibilityDate({ projectPath, }?: GetCompatDateOptions): GetCompatDateResult;
764
789
  /**
765
790
  * Discern whether a string represents a compatibility date (`YYYY-MM-DD`)
766
791
  *
@@ -769,12 +794,9 @@ declare function getLocalWorkerdCompatibilityDate({ projectPath, }?: GetCompatDa
769
794
  */
770
795
  declare function isCompatDate(str: string): str is CompatDate;
771
796
  /**
772
- * Returns the date formatted as a compatibility date
773
- *
774
- * @param date The target date to convert
775
- * @returns The date as a CompatDate string (a string following the format `YYYY-MM-DD`)
797
+ * Returns today's date as a compatibility date string (`YYYY-MM-DD`).
776
798
  */
777
- declare function formatCompatibilityDate(date: Date): CompatDate;
799
+ declare function getTodaysCompatDate(): CompatDate;
778
800
 
779
801
  /**
780
802
  * Returns whether the given path is a directory
@@ -815,4 +837,54 @@ declare function removeDir(dirPath: string, options?: {
815
837
  */
816
838
  declare function removeDirSync(dirPath: string): void;
817
839
 
818
- export { APIError, Binding, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, CommandLineArgsError, type CompatDate, type ComplianceConfig, Config, type ConfigBindingFieldName, DeprecationError, FatalError, JsonFriendlyFatalError, type Location, type Message, MissingConfigError, type NormalizeAndValidateConfigArgs, type PackageJSON, ParseError, type ParseFile, PatchConfigError, RawConfig, type ResolveConfigPathOptions, type TelemetryMessage, UserError, WorkerMetadataBinding, assertNever, bucketFormatMessage, configFileName, configFormat, createFatalError, experimental_patchConfig, experimental_readRawConfig, findWranglerConfig, formatCompatibilityDate, formatConfigSnippet, friendlyBindingNames, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getLocalWorkerdCompatibilityDate, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTraceHeader, getWorkersCIBranchName, getWranglerCacheDirFromEnv, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, indexLocation, isCompatDate, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation, validatePagesConfig };
840
+ /**
841
+ * cloudflared binary management for Wrangler tunnel commands.
842
+ *
843
+ * This module handles downloading, caching, and running the cloudflared binary.
844
+ * It uses the Cloudflare update worker (update.argotunnel.com) to resolve
845
+ * the latest version and download URL, matching cloudflared's own update mechanism.
846
+ */
847
+
848
+ interface Logger {
849
+ log: typeof console.log;
850
+ warn: typeof console.warn;
851
+ debug: typeof console.debug;
852
+ }
853
+ /**
854
+ * Spawn cloudflared process with automatic binary management
855
+ */
856
+ declare function spawnCloudflared(args: string[], options?: {
857
+ stdio?: "inherit" | "pipe";
858
+ env?: Record<string, string>;
859
+ skipVersionCheck?: boolean;
860
+ confirmDownload?: (message: string) => Promise<boolean>;
861
+ logger?: Logger;
862
+ }): Promise<ChildProcess>;
863
+
864
+ interface TunnelResult {
865
+ publicUrl: URL;
866
+ }
867
+ interface Tunnel {
868
+ ready: () => Promise<TunnelResult>;
869
+ dispose: () => void;
870
+ extendExpiry: (ms?: number) => void;
871
+ }
872
+ interface TunnelOptions {
873
+ origin: URL;
874
+ timeoutMs?: number;
875
+ expiryMs?: number;
876
+ reminderIntervalMs?: number;
877
+ extendHint?: string;
878
+ logger?: Logger;
879
+ }
880
+ /**
881
+ * Start a Cloudflare Quick Tunnel for a local dev origin.
882
+ *
883
+ * Spawns `cloudflared tunnel --url <origin>` and waits for the public URL
884
+ * to appear in its stderr output. Returns a controller with a `ready()`
885
+ * promise that resolves once the tunnel URL is available, and a `dispose()`
886
+ * function to stop the tunnel.
887
+ */
888
+ declare function startTunnel(options: TunnelOptions): Tunnel;
889
+
890
+ export { APIError, Binding, COMPLIANCE_REGION_CONFIG_PUBLIC, COMPLIANCE_REGION_CONFIG_UNKNOWN, CommandLineArgsError, type CompatDate, type ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, DeprecationError, Diagnostics, FatalError, JsonFriendlyFatalError, type Location, type Message, MissingConfigError, type NormalizeAndValidateConfigArgs, type PackageJSON, ParseError, type ParseFile, PatchConfigError, RawConfig, type ResolveConfigPathOptions, type TelemetryMessage, type Tunnel, type TunnelOptions, UserError, WorkerMetadataBinding, assertNever, bucketFormatMessage, configFileName, configFormat, createFatalError, experimental_patchConfig, experimental_readRawConfig, findWranglerConfig, formatConfigSnippet, friendlyBindingNames, getBindingTypeFriendlyName, getBooleanEnvironmentVariableFactory, getBrowserRenderingHeadfulFromEnv, getBuildConditionsFromEnv, getBuildPlatformFromEnv, getC3CommandFromEnv, getCIGeneratePreviewAlias, getCIMatchTag, getCIOverrideName, getCIOverrideNetworkModeHost, getCfFetchEnabledFromEnv, getCfFetchPathFromEnv, getCloudflareApiBaseUrl, getCloudflareApiEnvironmentFromEnv, getCloudflareComplianceRegion, getCloudflareEnv, getCloudflareIncludeProcessEnvFromEnv, getCloudflareLoadDevVarsFromDotEnv, getCloudflaredPathFromEnv, getComplianceRegionSubdomain, getD1ExtraLocationChoices, getDisableConfigWatching, getDockerPath, getEnvironmentVariableFactory, getGlobalWranglerConfigPath, getLocalExplorerEnabledFromEnv, getOpenNextDeployFromEnv, getOutputFileDirectoryFromEnv, getOutputFilePathFromEnv, getRegistryPath, getSanitizeLogs, getSubdomainMixedStateCheckDisabled, getTodaysCompatDate, getTraceHeader, getWorkersCIBranchName, getWranglerCacheDirFromEnv, getWranglerHideBanner, getWranglerSendErrorReportsFromEnv, getWranglerSendMetricsFromEnv, hasProperty, indexLocation, isCompatDate, isDirectory, isDockerfile, isOptionalProperty, isPagesConfig, isRequiredProperty, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, readFileSync, readFileSyncToBuffer, removeDir, removeDirSync, resolveWranglerConfigPath, searchLocation, spawnCloudflared, startTunnel, validatePagesConfig };