wrangler 3.91.0 → 3.93.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.
@@ -79,23 +79,36 @@ declare type AssetConfig = z.infer<typeof AssetConfigSchema>;
79
79
  declare const AssetConfigSchema: z.ZodObject<{
80
80
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
81
81
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
82
+ serve_directly: z.ZodOptional<z.ZodBoolean>;
82
83
  }, "strip", z.ZodTypeAny, {
83
84
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
84
85
  not_found_handling?: "none" | "single-page-application" | "404-page";
86
+ serve_directly?: boolean;
85
87
  }, {
86
88
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
87
89
  not_found_handling?: "none" | "single-page-application" | "404-page";
90
+ serve_directly?: boolean;
88
91
  }>;
89
92
 
90
93
  declare type Assets = {
91
94
  /** Absolute path to assets directory */
92
- directory: string;
95
+ directory?: string;
96
+ /** Name of `env` binding property in the User Worker. */
93
97
  binding?: string;
98
+ /** How to handle HTML requests. */
94
99
  html_handling?: "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | "none";
100
+ /** How to handle requests that do not match an asset. */
95
101
  not_found_handling?: "single-page-application" | "404-page" | "none";
102
+ /**
103
+ * If true, then respond to requests that match an asset with that asset directly.
104
+ * If false, route every request to the User Worker, whether or not it matches an asset.
105
+ * */
106
+ experimental_serve_directly?: boolean;
96
107
  };
97
108
 
98
- declare type AssetsOptions = Pick<Assets, "directory" | "binding"> & {
109
+ declare type AssetsOptions = {
110
+ directory: string;
111
+ binding?: string;
99
112
  routingConfig: RoutingConfig;
100
113
  assetConfig: AssetConfig;
101
114
  };
@@ -449,8 +462,8 @@ declare type CfCapnp = {
449
462
 
450
463
  declare interface CfD1Database {
451
464
  binding: string;
452
- database_id: string;
453
- database_name: string;
465
+ database_id?: string | typeof INHERIT_SYMBOL;
466
+ database_name?: string;
454
467
  preview_database_id?: string;
455
468
  database_internal_env?: string;
456
469
  migrations_table?: string;
@@ -488,7 +501,7 @@ declare interface CfHyperdrive {
488
501
  */
489
502
  declare interface CfKvNamespace {
490
503
  binding: string;
491
- id: string;
504
+ id?: string | typeof INHERIT_SYMBOL;
492
505
  }
493
506
 
494
507
  declare interface CfLogfwdrBinding {
@@ -564,7 +577,7 @@ declare interface CfQueue {
564
577
 
565
578
  declare interface CfR2Bucket {
566
579
  binding: string;
567
- bucket_name: string;
580
+ bucket_name?: string | typeof INHERIT_SYMBOL;
568
581
  jurisdiction?: string;
569
582
  }
570
583
 
@@ -759,29 +772,6 @@ declare type CloudchamberConfig = {
759
772
  ipv4?: boolean;
760
773
  };
761
774
 
762
- /**
763
- * This is the static type definition for the configuration object.
764
- *
765
- * It reflects a normalized and validated version of the configuration that you can write in a Wrangler configuration file,
766
- * and optionally augment with arguments passed directly to wrangler.
767
- *
768
- * For more information about the configuration object, see the
769
- * documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration
770
- *
771
- * Notes:
772
- *
773
- * - Fields that are only specified in `ConfigFields` and not `Environment` can only appear
774
- * in the top level config and should not appear in any environments.
775
- * - Fields that are specified in `PagesConfigFields` are only relevant for Pages projects
776
- * - All top level fields in config and environments are optional in the Wrangler configuration file.
777
- *
778
- * Legend for the annotations:
779
- *
780
- * - `@breaking`: the deprecation/optionality is a breaking change from Wrangler v1.
781
- * - `@todo`: there's more work to be done (with details attached).
782
- */
783
- declare type Config = ConfigFields<DevConfig> & PagesConfigFields & Environment;
784
-
785
775
  declare class ConfigController extends Controller<ConfigControllerEventMap> {
786
776
  #private;
787
777
  latestInput?: StartDevWorkerInput;
@@ -1006,14 +996,14 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
1006
996
  type: string;
1007
997
  };
1008
998
  latest_stage: {
999
+ status: "active" | "idle" | "canceled" | "success" | "failure" | "skipped";
1009
1000
  name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1010
- status: "active" | "idle" | "success" | "canceled" | "failure" | "skipped";
1011
1001
  started_on: string | null;
1012
1002
  ended_on: string | null;
1013
1003
  };
1014
1004
  stages: {
1005
+ status: "active" | "idle" | "canceled" | "success" | "failure" | "skipped";
1015
1006
  name: "queued" | "build" | "deploy" | "initialize" | "clone_repo";
1016
- status: "active" | "idle" | "success" | "canceled" | "failure" | "skipped";
1017
1007
  started_on: string | null;
1018
1008
  ended_on: string | null;
1019
1009
  }[];
@@ -1021,8 +1011,8 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
1021
1011
  modified_on: string;
1022
1012
  short_id: string;
1023
1013
  build_image_major_version: number;
1014
+ kv_namespaces?: any;
1024
1015
  source?: {
1025
- type: "github" | "gitlab";
1026
1016
  config: {
1027
1017
  owner: string;
1028
1018
  repo_name: string;
@@ -1034,8 +1024,8 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
1034
1024
  preview_branch_includes?: string[] | undefined;
1035
1025
  preview_branch_excludes?: string[] | undefined;
1036
1026
  };
1027
+ type: "github" | "gitlab";
1037
1028
  } | undefined;
1038
- kv_namespaces?: any;
1039
1029
  env_vars?: any;
1040
1030
  durable_object_namespaces?: any;
1041
1031
  is_skipped?: boolean | undefined;
@@ -1044,6 +1034,30 @@ declare function deploy({ directory, accountId, projectName, branch, skipCaching
1044
1034
  } | undefined;
1045
1035
  }>;
1046
1036
 
1037
+ declare interface DeprecatedConfigFields {
1038
+ /**
1039
+ * The project "type". A holdover from Wrangler v1.x.
1040
+ * Valid values were "webpack", "javascript", and "rust".
1041
+ *
1042
+ * @deprecated DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.
1043
+ * @breaking
1044
+ */
1045
+ type?: "webpack" | "javascript" | "rust";
1046
+ /**
1047
+ * Path to the webpack config to use when building your worker.
1048
+ * A holdover from Wrangler v1.x, used with `type: "webpack"`.
1049
+ *
1050
+ * @deprecated DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.
1051
+ * @breaking
1052
+ */
1053
+ webpack_config?: string;
1054
+ /**
1055
+ * Configuration only used by a standalone use of the miniflare binary.
1056
+ * @deprecated
1057
+ */
1058
+ miniflare?: unknown;
1059
+ }
1060
+
1047
1061
  /**
1048
1062
  * Deprecated upload configuration.
1049
1063
  */
@@ -1491,6 +1505,39 @@ declare type Entry = {
1491
1505
  declare interface Environment extends EnvironmentInheritable, EnvironmentNonInheritable {
1492
1506
  }
1493
1507
 
1508
+ /**
1509
+ * The environment configuration properties that have been deprecated.
1510
+ */
1511
+ declare interface EnvironmentDeprecated {
1512
+ /**
1513
+ * The zone ID of the zone you want to deploy to. You can find this
1514
+ * in your domain page on the dashboard.
1515
+ *
1516
+ * @deprecated This is unnecessary since we can deduce this from routes directly.
1517
+ */
1518
+ zone_id?: string;
1519
+ /**
1520
+ * Legacy way of defining KVNamespaces that is no longer supported.
1521
+ *
1522
+ * @deprecated DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.
1523
+ */
1524
+ "kv-namespaces"?: string;
1525
+ /**
1526
+ * A list of services that your Worker should be bound to.
1527
+ *
1528
+ * @default `[]`
1529
+ * @deprecated DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.
1530
+ */
1531
+ experimental_services?: {
1532
+ /** The binding name used to refer to the Service */
1533
+ name: string;
1534
+ /** The name of the Service being bound */
1535
+ service: string;
1536
+ /** The Service's environment */
1537
+ environment: string;
1538
+ }[];
1539
+ }
1540
+
1494
1541
  /**
1495
1542
  * The `EnvironmentInheritable` interface declares all the configuration fields for an environment
1496
1543
  * that can be inherited (and overridden) from the top-level environment.
@@ -1777,6 +1824,24 @@ declare interface EnvironmentInheritable {
1777
1824
  observability: Observability | undefined;
1778
1825
  }
1779
1826
 
1827
+ declare interface EnvironmentMap {
1828
+ /**
1829
+ * The `env` section defines overrides for the configuration for different environments.
1830
+ *
1831
+ * All environment fields can be specified at the top level of the config indicating the default environment settings.
1832
+ *
1833
+ * - Some fields are inherited and overridable in each environment.
1834
+ * - But some are not inherited and must be explicitly specified in every environment, if they are specified at the top level.
1835
+ *
1836
+ * For more information, see the documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration#environments
1837
+ *
1838
+ * @default {}
1839
+ */
1840
+ env?: {
1841
+ [envName: string]: Unstable_RawEnvironment;
1842
+ };
1843
+ }
1844
+
1780
1845
  /**
1781
1846
  * The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
1782
1847
  * that cannot be inherited from the top-level environment, and must be defined specifically.
@@ -1857,7 +1922,7 @@ declare interface EnvironmentNonInheritable {
1857
1922
  /** The binding name used to refer to the KV Namespace */
1858
1923
  binding: string;
1859
1924
  /** The ID of the KV namespace */
1860
- id: string;
1925
+ id?: string;
1861
1926
  /** The ID of the KV namespace used during `wrangler dev` */
1862
1927
  preview_id?: string;
1863
1928
  }[];
@@ -1932,7 +1997,7 @@ declare interface EnvironmentNonInheritable {
1932
1997
  /** The binding name used to refer to the R2 bucket in the Worker. */
1933
1998
  binding: string;
1934
1999
  /** The name of this R2 bucket at the edge. */
1935
- bucket_name: string;
2000
+ bucket_name?: string;
1936
2001
  /** The preview name of this R2 bucket at the edge. */
1937
2002
  preview_bucket_name?: string;
1938
2003
  /** The jurisdiction that the bucket exists in. Default if not present. */
@@ -1951,9 +2016,9 @@ declare interface EnvironmentNonInheritable {
1951
2016
  /** The binding name used to refer to the D1 database in the Worker. */
1952
2017
  binding: string;
1953
2018
  /** The name of this D1 database. */
1954
- database_name: string;
2019
+ database_name?: string;
1955
2020
  /** The UUID of this D1 database (not required). */
1956
- database_id: string;
2021
+ database_id?: string;
1957
2022
  /** The UUID of this D1 database for Wrangler Dev (if specified). */
1958
2023
  preview_database_id?: string;
1959
2024
  /** The name of the migrations table for this D1 database (defaults to 'd1_migrations'). */
@@ -2159,7 +2224,7 @@ declare interface EnvironmentNonInheritable {
2159
2224
  }[];
2160
2225
  }
2161
2226
 
2162
- declare type ErrorEvent = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker"> | BaseErrorEvent<"ProxyController", {
2227
+ declare type ErrorEvent = BaseErrorEvent<"ConfigController" | "BundlerController" | "LocalRuntimeController" | "RemoteRuntimeController" | "ProxyWorker" | "InspectorProxyWorker" | "MultiworkerRuntimeController"> | BaseErrorEvent<"ProxyController", {
2163
2228
  config?: StartDevWorkerOptions;
2164
2229
  bundle?: Bundle;
2165
2230
  }> | BaseErrorEvent<"BundlerController", {
@@ -2649,6 +2714,11 @@ declare type HttpTerminator = {
2649
2714
  */
2650
2715
  declare type IncomingHttpHeaders = Record<string, string | string[] | undefined>;
2651
2716
 
2717
+ /**
2718
+ * A symbol to inherit a binding from the deployed worker.
2719
+ */
2720
+ declare const INHERIT_SYMBOL: unique symbol;
2721
+
2652
2722
  declare type InspectorProxyWorkerIncomingWebSocketMessage = {
2653
2723
  type: ReloadStartEvent["type"];
2654
2724
  } | {
@@ -2929,13 +2999,23 @@ declare interface MultiCacheQueryOptions extends CacheQueryOptions {
2929
2999
 
2930
3000
  declare type NameOmit<T> = Omit<T, "name">;
2931
3001
 
3002
+ declare type NormalizeAndValidateConfigArgs = {
3003
+ name?: string;
3004
+ env?: string;
3005
+ "legacy-env"?: boolean;
3006
+ "dispatch-namespace"?: string;
3007
+ remote?: boolean;
3008
+ localProtocol?: string;
3009
+ upstreamProtocol?: string;
3010
+ };
3011
+
2932
3012
  declare interface Observability {
2933
3013
  /** If observability is enabled for this Worker */
2934
- enabled: boolean;
3014
+ enabled?: boolean;
2935
3015
  /** The sampling rate */
2936
3016
  head_sampling_rate?: number;
2937
3017
  logs?: {
2938
- enabled: boolean;
3018
+ enabled?: boolean;
2939
3019
  /** The sampling rate */
2940
3020
  head_sampling_rate?: number;
2941
3021
  /** Set to false to disable invocation logs */
@@ -2954,17 +3034,6 @@ declare interface PagesConfigFields {
2954
3034
  pages_build_output_dir?: string;
2955
3035
  }
2956
3036
 
2957
- declare interface PagesConfigFields {
2958
- /**
2959
- * The directory of static assets to serve.
2960
- *
2961
- * The presence of this field in a Wrangler configuration file indicates a Pages project,
2962
- * and will prompt the handling of the configuration file according to the
2963
- * Pages-specific validation rules.
2964
- */
2965
- pages_build_output_dir?: string;
2966
- }
2967
-
2968
3037
  declare interface PagesDeployOptions {
2969
3038
  /**
2970
3039
  * Path to static assets to deploy to Pages
@@ -25577,10 +25646,12 @@ declare type ProxyWorkerOutgoingRequestBody = {
25577
25646
  args: Parameters<typeof console.debug>;
25578
25647
  };
25579
25648
 
25580
- declare type QueueConsumer = NonNullable<Config["queues"]["consumers"]>[number];
25649
+ declare type QueueConsumer = NonNullable<Unstable_Config["queues"]["consumers"]>[number];
25581
25650
 
25582
25651
  declare type RawDevConfig = Partial<DevConfig>;
25583
25652
 
25653
+ declare type ReadConfigCommandArgs = NormalizeAndValidateConfigArgs;
25654
+
25584
25655
  declare type ReadyEvent = {
25585
25656
  type: "ready";
25586
25657
  proxyWorker: Miniflare;
@@ -26006,7 +26077,7 @@ declare interface StartDevWorkerInput {
26006
26077
  jsxFactory?: string;
26007
26078
  jsxFragment?: string;
26008
26079
  tsconfig?: string;
26009
- nodejsCompatMode?: Hook<NodeJSCompatMode, [Config]>;
26080
+ nodejsCompatMode?: Hook<NodeJSCompatMode, [Unstable_Config]>;
26010
26081
  moduleRoot?: string;
26011
26082
  };
26012
26083
  /** Options applying to the worker's development preview environment. */
@@ -26020,7 +26091,7 @@ declare interface StartDevWorkerInput {
26020
26091
  /** Whether the worker runs on the edge or locally. */
26021
26092
  remote?: boolean;
26022
26093
  /** Cloudflare Account credentials. Can be provided upfront or as a function which will be called only when required. */
26023
- auth?: AsyncHook<CfAccount, [Pick<Config, "account_id">]>;
26094
+ auth?: AsyncHook<CfAccount, [Pick<Unstable_Config, "account_id">]>;
26024
26095
  /** Whether local storage (KV, Durable Objects, R2, D1, etc) is persisted. You can also specify the directory to persist data to. */
26025
26096
  persist?: string;
26026
26097
  /** Controls which logs are logged 🤙. */
@@ -26047,14 +26118,16 @@ declare interface StartDevWorkerInput {
26047
26118
  /** An undici MockAgent to declaratively mock fetch calls to particular resources. */
26048
26119
  mockFetch?: undici.MockAgent;
26049
26120
  /** Describes the registry of other Workers running locally */
26050
- registry?: WorkerRegistry;
26121
+ registry?: WorkerRegistry | null;
26051
26122
  testScheduled?: boolean;
26052
26123
  /** Whether to use Vectorize mixed mode -- the worker is run locally but accesses to Vectorize are made remotely */
26053
26124
  bindVectorizeToProd?: boolean;
26125
+ /** Treat this as the primary worker in a multiworker setup (i.e. the first Worker in Miniflare's options) */
26126
+ multiworkerPrimary?: boolean;
26054
26127
  };
26055
26128
  legacy?: {
26056
- site?: Hook<Config["site"], [Config]>;
26057
- legacyAssets?: Hook<Config["legacy_assets"], [Config]>;
26129
+ site?: Hook<Unstable_Config["site"], [Unstable_Config]>;
26130
+ legacyAssets?: Hook<Unstable_Config["legacy_assets"], [Unstable_Config]>;
26058
26131
  enableServiceEnvironments?: boolean;
26059
26132
  };
26060
26133
  unsafe?: Omit<CfUnsafe, "bindings">;
@@ -26075,8 +26148,8 @@ declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
26075
26148
  processEntrypoint: boolean;
26076
26149
  };
26077
26150
  legacy: StartDevWorkerInput["legacy"] & {
26078
- legacyAssets?: Config["legacy_assets"];
26079
- site?: Config["site"];
26151
+ legacyAssets?: Unstable_Config["legacy_assets"];
26152
+ site?: Unstable_Config["site"];
26080
26153
  };
26081
26154
  dev: StartDevWorkerInput["dev"] & {
26082
26155
  persist: string;
@@ -26084,6 +26157,7 @@ declare type StartDevWorkerOptions = Omit<StartDevWorkerInput, "assets"> & {
26084
26157
  };
26085
26158
  entrypoint: string;
26086
26159
  assets?: AssetsOptions;
26160
+ name: string;
26087
26161
  };
26088
26162
 
26089
26163
  /** A faster version of `request`. */
@@ -26255,10 +26329,39 @@ declare namespace undici {
26255
26329
  }
26256
26330
  }
26257
26331
 
26332
+ export declare interface Unstable_ASSETSBindingsOptions {
26333
+ log: Logger;
26334
+ proxyPort?: number;
26335
+ directory?: string;
26336
+ }
26337
+
26338
+ /**
26339
+ * This is the static type definition for the configuration object.
26340
+ *
26341
+ * It reflects a normalized and validated version of the configuration that you can write in a Wrangler configuration file,
26342
+ * and optionally augment with arguments passed directly to wrangler.
26343
+ *
26344
+ * For more information about the configuration object, see the
26345
+ * documentation at https://developers.cloudflare.com/workers/cli-wrangler/configuration
26346
+ *
26347
+ * Notes:
26348
+ *
26349
+ * - Fields that are only specified in `ConfigFields` and not `Environment` can only appear
26350
+ * in the top level config and should not appear in any environments.
26351
+ * - Fields that are specified in `PagesConfigFields` are only relevant for Pages projects
26352
+ * - All top level fields in config and environments are optional in the Wrangler configuration file.
26353
+ *
26354
+ * Legend for the annotations:
26355
+ *
26356
+ * - `@breaking`: the deprecation/optionality is a breaking change from Wrangler v1.
26357
+ * - `@todo`: there's more work to be done (with details attached).
26358
+ */
26359
+ export declare type Unstable_Config = ConfigFields<DevConfig> & PagesConfigFields & Environment;
26360
+
26258
26361
  /**
26259
26362
  * unstable_dev starts a wrangler dev server, and returns a promise that resolves with utility functions to interact with it.
26260
26363
  */
26261
- export declare function unstable_dev(script: string, options?: UnstableDevOptions, apiOptions?: unknown): Promise<UnstableDevWorker>;
26364
+ export declare function unstable_dev(script: string, options?: Unstable_DevOptions, apiOptions?: unknown): Promise<Unstable_DevWorker>;
26262
26365
 
26263
26366
  export declare class unstable_DevEnv extends EventEmitter_2 {
26264
26367
  config: ConfigController;
@@ -26276,37 +26379,7 @@ export declare class unstable_DevEnv extends EventEmitter_2 {
26276
26379
  emitErrorEvent(ev: ErrorEvent): void;
26277
26380
  }
26278
26381
 
26279
- export declare const unstable_generateASSETSBinding: (opts: UnstableASSETSBindingsOptions) => (request: Request_3) => Promise<Response_3>;
26280
-
26281
- export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string): {
26282
- workerOptions: SourcelessWorkerOptions;
26283
- define: Record<string, string>;
26284
- main?: string;
26285
- };
26286
-
26287
- export declare const unstable_pages: {
26288
- deploy: typeof deploy;
26289
- };
26290
-
26291
- /**
26292
- * Split an SQLQuery into an array of statements
26293
- */
26294
- export declare function unstable_splitSqlQuery(sql: string): string[];
26295
-
26296
- export declare function unstable_startWorker(options: StartDevWorkerInput): Promise<Worker>;
26297
-
26298
- export declare const unstable_startWorkerRegistryServer: (port: number) => Promise<{
26299
- server: Server<IncomingMessage, ServerResponse>;
26300
- terminator: HttpTerminator;
26301
- }>;
26302
-
26303
- export declare interface UnstableASSETSBindingsOptions {
26304
- log: Logger;
26305
- proxyPort?: number;
26306
- directory?: string;
26307
- }
26308
-
26309
- export declare interface UnstableDevOptions {
26382
+ export declare interface Unstable_DevOptions {
26310
26383
  config?: string;
26311
26384
  env?: string;
26312
26385
  ip?: string;
@@ -26329,7 +26402,7 @@ export declare interface UnstableDevOptions {
26329
26402
  vars?: Record<string, string | Json>;
26330
26403
  kv?: {
26331
26404
  binding: string;
26332
- id: string;
26405
+ id?: string;
26333
26406
  preview_id?: string;
26334
26407
  }[];
26335
26408
  durableObjects?: {
@@ -26346,7 +26419,7 @@ export declare interface UnstableDevOptions {
26346
26419
  }[];
26347
26420
  r2?: {
26348
26421
  binding: string;
26349
- bucket_name: string;
26422
+ bucket_name?: string;
26350
26423
  preview_bucket_name?: string;
26351
26424
  }[];
26352
26425
  ai?: {
@@ -26381,7 +26454,7 @@ export declare interface UnstableDevOptions {
26381
26454
  };
26382
26455
  }
26383
26456
 
26384
- export declare interface UnstableDevWorker {
26457
+ export declare interface Unstable_DevWorker {
26385
26458
  port: number;
26386
26459
  address: string;
26387
26460
  stop: () => Promise<void>;
@@ -26389,6 +26462,60 @@ export declare interface UnstableDevWorker {
26389
26462
  waitUntilExit: () => Promise<void>;
26390
26463
  }
26391
26464
 
26465
+ export declare const unstable_generateASSETSBinding: (opts: Unstable_ASSETSBindingsOptions) => (request: Request_3) => Promise<Response_3>;
26466
+
26467
+ export declare function unstable_getMiniflareWorkerOptions(configPath: string, env?: string): Unstable_MiniflareWorkerOptions;
26468
+
26469
+ export declare function unstable_getMiniflareWorkerOptions(config: Unstable_Config): Unstable_MiniflareWorkerOptions;
26470
+
26471
+ export declare interface Unstable_MiniflareWorkerOptions {
26472
+ workerOptions: SourcelessWorkerOptions;
26473
+ define: Record<string, string>;
26474
+ main?: string;
26475
+ }
26476
+
26477
+ export declare const unstable_pages: {
26478
+ deploy: typeof deploy;
26479
+ };
26480
+
26481
+ export declare type Unstable_RawConfig = Partial<ConfigFields<RawDevConfig>> & PagesConfigFields & Unstable_RawEnvironment & DeprecatedConfigFields & EnvironmentMap & {
26482
+ $schema?: string;
26483
+ };
26484
+
26485
+ /**
26486
+ * The raw environment configuration that we read from the config file.
26487
+ *
26488
+ * All the properties are optional, and will be replaced with defaults in the configuration that
26489
+ * is used in the rest of the codebase.
26490
+ */
26491
+ export declare type Unstable_RawEnvironment = Partial<Environment> & EnvironmentDeprecated;
26492
+
26493
+ /**
26494
+ * Get the Wrangler configuration; read it from the give `configPath` if available.
26495
+ */
26496
+ export declare function unstable_readConfig(configPath: string | undefined, args: ReadConfigCommandArgs, options: {
26497
+ requirePagesConfig: true;
26498
+ }): Omit<Unstable_Config, "pages_build_output_dir"> & {
26499
+ pages_build_output_dir: string;
26500
+ };
26501
+
26502
+ export declare function unstable_readConfig(configPath: string | undefined, args: ReadConfigCommandArgs, options?: {
26503
+ requirePagesConfig?: boolean;
26504
+ hideWarnings?: boolean;
26505
+ }): Unstable_Config;
26506
+
26507
+ /**
26508
+ * Split an SQLQuery into an array of statements
26509
+ */
26510
+ export declare function unstable_splitSqlQuery(sql: string): string[];
26511
+
26512
+ export declare function unstable_startWorker(options: StartDevWorkerInput): Promise<Worker>;
26513
+
26514
+ export declare const unstable_startWorkerRegistryServer: (port: number) => Promise<{
26515
+ server: Server<IncomingMessage, ServerResponse>;
26516
+ terminator: HttpTerminator;
26517
+ }>;
26518
+
26392
26519
  /** Upgrade to a different protocol. */
26393
26520
  declare function upgrade(
26394
26521
  url: string | URL_2 | UrlObject,