import { $ as Settings, A as TextBinding, B as WorkerBinding, C as QueueBinding, D as SecretsStoreSecretBinding, E as SecretBinding, F as UnsafeBinding, G as ContainerDefinition, H as WorkflowBinding, I as VectorizeBinding, J as defineConfig, K as WorkerDefinition, L as VersionMetadataBinding, M as TypedKvBinding, N as TypedPipelineBinding, O as SendEmailBinding, P as TypedQueueBinding, Q as ContainerConfig, R as VpcNetworkBinding, S as PipelineBinding, T as RateLimitBinding, U as bindings, V as WorkerLoaderBinding, W as ConfigContext, X as defineWorker, Y as defineContainer, Z as CloudflareConfig, _ as JsonBinding, _t as Exports, a as AnalyticsEngineDatasetBinding, at as ScheduledTrigger, b as MediaBinding, bt as exports, c as BindingDevOptions, ct as InferDurableNamespaces, d as D1Binding, dt as UnwrapConfig, et as WorkerConfig, f as DispatchNamespaceBinding, ft as DurableObjectCreatedExport, g as ImagesBinding, gt as DurableObjectTransferredExport, h as HyperdriveBinding, ht as DurableObjectRenamedExport, i as AiSearchNamespaceBinding, it as QueueConsumerTrigger, j as TypedAiBinding, k as StreamBinding, l as Bindings, lt as InferEnv, m as FlagshipBinding, mt as DurableObjectExpectingTransferExport, n as AiBinding, nt as EmailTrigger, o as ArtifactsBinding, ot as Triggers, p as DurableObjectBinding, pt as DurableObjectDeletedExport, q as WorkerReference, r as AiSearchBinding, rt as FetchTrigger, s as AssetsBinding, st as triggers, t as AgentMemoryBinding, tt as ConnectTrigger, u as BrowserBinding, ut as InferMainModule, v as KvBinding, vt as WorkerEntrypointExport, w as R2Binding, x as MtlsCertificateBinding, y as LogfwdrBinding, yt as WorkerEntrypointExportOptions, z as VpcServiceBinding } from "./public-fVh2BrM5.mjs"; import * as z from "zod"; import { RawConfig } from "@cloudflare/workers-utils"; //#region src/schema.d.ts declare const AssetsSchema: z.ZodObject<{ htmlHandling: z.ZodOptional>; notFoundHandling: z.ZodOptional>; runWorkerFirst: z.ZodOptional, z.ZodBoolean]>>; }, z.core.$strict>; declare const BrowserBindingSchema: z.ZodObject<{ type: z.ZodLiteral<"browser">; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const WorkerBindingSchema: z.ZodObject<{ type: z.ZodLiteral<"worker">; worker: z.ZodString; exportName: z.ZodOptional; props: z.ZodOptional>; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const D1BindingSchema: z.ZodObject<{ type: z.ZodLiteral<"d1">; name: z.ZodOptional; id: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const KVBindingSchema: z.ZodObject<{ type: z.ZodLiteral<"kv">; id: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const QueueBindingSchema: z.ZodObject<{ type: z.ZodLiteral<"queue">; name: z.ZodOptional; deliveryDelay: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const R2BindingSchema: z.ZodObject<{ type: z.ZodLiteral<"r2">; name: z.ZodOptional; jurisdiction: z.ZodOptional; dev: z.ZodOptional; experimentalS3Credentials: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; declare const AnalyticsEngineDatasetBindingSchema: z.ZodObject<{ type: z.ZodLiteral<"analytics-engine-dataset">; name: z.ZodOptional; }, z.core.$strict>; declare const FlagshipBindingSchema: z.ZodObject<{ type: z.ZodLiteral<"flagship">; id: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const HyperdriveBindingSchema: z.ZodObject<{ type: z.ZodLiteral<"hyperdrive">; id: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"agent-memory">; namespace: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ai">; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ai-search">; name: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ai-search-namespace">; namespace: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"analytics-engine-dataset">; name: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"artifacts">; namespace: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"assets">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"browser">; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"d1">; name: z.ZodOptional; id: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"dispatch-namespace">; namespace: z.ZodOptional; outbound: z.ZodOptional>; }, z.core.$strict>>; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; worker: z.ZodString; exportName: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"flagship">; id: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"hyperdrive">; id: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"images">; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"json">; value: z.ZodJSONSchema; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"kv">; id: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"logfwdr">; destination: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"media">; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"mtls-certificate">; id: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"pipeline">; name: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"queue">; name: z.ZodOptional; deliveryDelay: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"rate-limit">; namespace: z.ZodString; simple: z.ZodObject<{ limit: z.ZodNumber; period: z.ZodUnion, z.ZodLiteral<60>]>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"r2">; name: z.ZodOptional; jurisdiction: z.ZodOptional; dev: z.ZodOptional; experimentalS3Credentials: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"secret">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"secrets-store-secret">; storeId: z.ZodString; secretName: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"send-email">; destinationAddress: z.ZodOptional; allowedDestinationAddresses: z.ZodOptional>; allowedSenderAddresses: z.ZodOptional>; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict> & z.ZodType>, z.ZodObject<{ type: z.ZodLiteral<"stream">; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"text">; value: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"vectorize">; name: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"version-metadata">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"vpc-service">; id: z.ZodString; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"vpc-network">; tunnelId: z.ZodOptional; networkId: z.ZodOptional; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict> & z.ZodType>, z.ZodObject<{ type: z.ZodLiteral<"worker">; worker: z.ZodString; exportName: z.ZodOptional; props: z.ZodOptional>; dev: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"worker-loader">; }, z.core.$strict>], "type">; declare const UnsafeBindingSchema: z.ZodObject<{ type: z.ZodTemplateLiteral<`unsafe:${string}`>; dev: z.ZodOptional; options: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$loose>; type BindingInput = z.input | z.input; type BindingOutput = z.output | z.output; declare const BindingSchema: z.ZodType; declare function validateSingletonBindings(env: Record, ctx: z.RefinementCtx): void; /** * Input Container schema — parses user-authored `cloudflare.config.ts` * Container objects. Dockerfiles are built by the consuming build tool. */ declare const InputContainerSchema: z.ZodUnion>; observability: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; targetInstancePercentage: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ enabled: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; targetInstanceCount: z.ZodOptional; }, z.core.$strict>]>>; maxInstances: z.ZodDefault; instanceType: z.ZodOptional, z.ZodObject<{ vcpu: z.ZodOptional; memoryMib: z.ZodOptional; diskMb: z.ZodOptional; }, z.core.$strict>]>>; schedulingPolicy: z.ZodOptional>; ssh: z.ZodOptional; }, z.core.$strict>>; authorizedKeys: z.ZodOptional>>; constraints: z.ZodOptional>>; jurisdiction: z.ZodOptional>; }, z.core.$strict>>; rollout: z.ZodOptional>; stepPercentage: z.ZodOptional]>>; activeGracePeriod: z.ZodOptional; }, z.core.$strict>>; image: z.ZodUnion; buildVars: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ reference: z.ZodString; }, z.core.$strict>]>; }, z.core.$strict>, z.ZodObject<{ name: z.ZodString; unsafe: z.ZodOptional>; schedulingPolicy: z.ZodLiteral<"durable-object">; observability: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; images: z.ZodOptional; buildVars: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ reference: z.ZodString; }, z.core.$strict>]>>>; }, z.core.$strict>]>; type ParsedInputContainerConfig = z.output; /** * Output Container schema — parses `container.config.json` files in the Build * Output Specification, after any Dockerfile has been built into a local image reference. */ declare const OutputContainerSchema: z.ZodUnion>; observability: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; targetInstancePercentage: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ enabled: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; targetInstanceCount: z.ZodOptional; }, z.core.$strict>]>>; maxInstances: z.ZodDefault; instanceType: z.ZodOptional, z.ZodObject<{ vcpu: z.ZodOptional; memoryMib: z.ZodOptional; diskMb: z.ZodOptional; }, z.core.$strict>]>>; schedulingPolicy: z.ZodOptional>; ssh: z.ZodOptional; }, z.core.$strict>>; authorizedKeys: z.ZodOptional>>; constraints: z.ZodOptional>>; jurisdiction: z.ZodOptional>; }, z.core.$strict>>; rollout: z.ZodOptional>; stepPercentage: z.ZodOptional]>>; activeGracePeriod: z.ZodOptional; }, z.core.$strict>>; image: z.ZodUnion, z.ZodObject<{ localReference: z.ZodString; }, z.core.$strict>]>; }, z.core.$strict>, z.ZodObject<{ name: z.ZodString; unsafe: z.ZodOptional>; schedulingPolicy: z.ZodLiteral<"durable-object">; observability: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; images: z.ZodOptional, z.ZodObject<{ localReference: z.ZodString; }, z.core.$strict>]>>>; }, z.core.$strict>]>; type ParsedOutputContainerConfig = z.output; declare const DurableObjectCreatedExportSchema: z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodOptional>; storage: z.ZodEnum<{ sqlite: "sqlite"; "legacy-kv": "legacy-kv"; }>; container: z.ZodOptional; }, z.core.$strict>; declare const DurableObjectDeletedExportSchema: z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"deleted">; }, z.core.$strict>; declare const DurableObjectRenamedExportSchema: z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"renamed">; renamedTo: z.ZodString; }, z.core.$strict>; declare const DurableObjectTransferredExportSchema: z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"transferred">; transferredTo: z.ZodString; }, z.core.$strict>; declare const DurableObjectExpectingTransferExportSchema: z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; storage: z.ZodEnum<{ sqlite: "sqlite"; "legacy-kv": "legacy-kv"; }>; transferFrom: z.ZodString; container: z.ZodOptional; }, z.core.$strict>; declare const WorkerEntrypointExportSchema: z.ZodObject<{ type: z.ZodLiteral<"worker">; cache: z.ZodOptional>; }, z.core.$strict>; declare const ExportSchema: z.ZodUnion; state: z.ZodOptional>; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodOptional>; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"deleted">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"renamed">; renamedTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"transferred">; transferredTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"worker">; cache: z.ZodOptional>; }, z.core.$strict>]>; declare const TailConsumerSchema: z.ZodObject<{ worker: z.ZodString; streaming: z.ZodOptional; }, z.core.$strict>; /** * Input Worker schema — parses Worker definitions from user-authored * `cloudflare.config.ts` files. Adds an optional string `entrypoint` field to * the base schema. */ declare const InputWorkerSchema: z.ZodObject<{ name: z.ZodString; compatibilityDate: z.ZodString; compatibilityFlags: z.ZodOptional>; assets: z.ZodOptional>; notFoundHandling: z.ZodOptional>; runWorkerFirst: z.ZodOptional, z.ZodBoolean]>>; }, z.core.$strict>>; domains: z.ZodOptional>; triggers: z.ZodOptional; addresses: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"fetch">; pattern: z.ZodString; zone: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"queue">; name: z.ZodString; deadLetterQueue: z.ZodOptional; maxBatchSize: z.ZodOptional; maxBatchTimeout: z.ZodOptional; maxConcurrency: z.ZodOptional>; maxRetries: z.ZodOptional; retryDelay: z.ZodOptional; visibilityTimeoutMs: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"scheduled">; schedule: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"connect">; protocol: z.ZodEnum<{ tcp: "tcp"; }>; port: z.ZodNumber; address: z.ZodOptional; }, z.core.$strict>], "type">>>; tailConsumers: z.ZodOptional; }, z.core.$strict>>>; cache: z.ZodOptional; }, z.core.$strict>>; placement: z.ZodOptional; hint: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; region: z.ZodString; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; host: z.ZodString; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; hostname: z.ZodString; }, z.core.$strict>]>>; limits: z.ZodOptional; subrequests: z.ZodOptional; }, z.core.$strict>>; logpush: z.ZodOptional; observability: z.ZodOptional; headSamplingRate: z.ZodOptional; redactQueryString: z.ZodOptional; issues: z.ZodOptional; }, z.core.$strict>>; logs: z.ZodOptional; headSamplingRate: z.ZodOptional; invocationLogs: z.ZodOptional; persist: z.ZodOptional; destinations: z.ZodOptional>; }, z.core.$strict>>; traces: z.ZodOptional; headSamplingRate: z.ZodOptional; persist: z.ZodOptional; destinations: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>>; workersDev: z.ZodOptional; previewUrls: z.ZodOptional; firstPartyWorker: z.ZodOptional; unsafe: z.ZodOptional>; capnp: z.ZodOptional; compiledSchema: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ basePath: z.ZodOptional; sourceSchemas: z.ZodOptional; compiledSchema: z.ZodString; }, z.core.$strict>]>>; }, z.core.$strict>>; env: z.ZodOptional>>>; exports: z.ZodOptional; state: z.ZodOptional>; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodOptional>; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"deleted">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"renamed">; renamedTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"transferred">; transferredTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"worker">; cache: z.ZodOptional>; }, z.core.$strict>]>>>; entrypoint: z.ZodOptional; }, z.core.$strict>; type InputWorkerConfig = z.input; type ParsedInputWorkerConfig = z.output; /** * Input settings schema — parses the account settings at the top level of * `cloudflare.config.ts`. */ declare const InputSettingsSchema: z.ZodObject<{ accountId: z.ZodOptional; complianceRegion: z.ZodOptional>; }, z.core.$strip>; type ParsedInputSettingsConfig = z.output; /** The resolved, user-authored project configuration. */ declare const InputConfigSchema: z.ZodObject<{ worker: z.ZodOptional>; assets: z.ZodOptional>; notFoundHandling: z.ZodOptional>; runWorkerFirst: z.ZodOptional, z.ZodBoolean]>>; }, z.core.$strict>>; domains: z.ZodOptional>; triggers: z.ZodOptional; addresses: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"fetch">; pattern: z.ZodString; zone: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"queue">; name: z.ZodString; deadLetterQueue: z.ZodOptional; maxBatchSize: z.ZodOptional; maxBatchTimeout: z.ZodOptional; maxConcurrency: z.ZodOptional>; maxRetries: z.ZodOptional; retryDelay: z.ZodOptional; visibilityTimeoutMs: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"scheduled">; schedule: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"connect">; protocol: z.ZodEnum<{ tcp: "tcp"; }>; port: z.ZodNumber; address: z.ZodOptional; }, z.core.$strict>], "type">>>; tailConsumers: z.ZodOptional; }, z.core.$strict>>>; cache: z.ZodOptional; }, z.core.$strict>>; placement: z.ZodOptional; hint: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; region: z.ZodString; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; host: z.ZodString; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; hostname: z.ZodString; }, z.core.$strict>]>>; limits: z.ZodOptional; subrequests: z.ZodOptional; }, z.core.$strict>>; logpush: z.ZodOptional; observability: z.ZodOptional; headSamplingRate: z.ZodOptional; redactQueryString: z.ZodOptional; issues: z.ZodOptional; }, z.core.$strict>>; logs: z.ZodOptional; headSamplingRate: z.ZodOptional; invocationLogs: z.ZodOptional; persist: z.ZodOptional; destinations: z.ZodOptional>; }, z.core.$strict>>; traces: z.ZodOptional; headSamplingRate: z.ZodOptional; persist: z.ZodOptional; destinations: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>>; workersDev: z.ZodOptional; previewUrls: z.ZodOptional; firstPartyWorker: z.ZodOptional; unsafe: z.ZodOptional>; capnp: z.ZodOptional; compiledSchema: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ basePath: z.ZodOptional; sourceSchemas: z.ZodOptional; compiledSchema: z.ZodString; }, z.core.$strict>]>>; }, z.core.$strict>>; env: z.ZodOptional>>>; exports: z.ZodOptional; state: z.ZodOptional>; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodOptional>; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"deleted">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"renamed">; renamedTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"transferred">; transferredTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"worker">; cache: z.ZodOptional>; }, z.core.$strict>]>>>; entrypoint: z.ZodOptional; }, z.core.$strict>>; containers: z.ZodDefault>; observability: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; targetInstancePercentage: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ enabled: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; targetInstanceCount: z.ZodOptional; }, z.core.$strict>]>>; maxInstances: z.ZodDefault; instanceType: z.ZodOptional, z.ZodObject<{ vcpu: z.ZodOptional; memoryMib: z.ZodOptional; diskMb: z.ZodOptional; }, z.core.$strict>]>>; schedulingPolicy: z.ZodOptional>; ssh: z.ZodOptional; }, z.core.$strict>>; authorizedKeys: z.ZodOptional>>; constraints: z.ZodOptional>>; jurisdiction: z.ZodOptional>; }, z.core.$strict>>; rollout: z.ZodOptional>; stepPercentage: z.ZodOptional]>>; activeGracePeriod: z.ZodOptional; }, z.core.$strict>>; image: z.ZodUnion; buildVars: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ reference: z.ZodString; }, z.core.$strict>]>; }, z.core.$strict>, z.ZodObject<{ name: z.ZodString; unsafe: z.ZodOptional>; schedulingPolicy: z.ZodLiteral<"durable-object">; observability: z.ZodOptional; logs: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; images: z.ZodOptional; buildVars: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ reference: z.ZodString; }, z.core.$strict>]>>>; }, z.core.$strict>]>>>; accountId: z.ZodOptional; complianceRegion: z.ZodOptional>; }, z.core.$strict>; type ParsedInputConfig = z.output; /** * The shape of the root `config.json` in the Build Output Specification. * Account settings remain at the top level while build context is grouped * under `buildContext`. */ declare const OutputRootConfigSchema: z.ZodObject<{ buildContext: z.ZodObject<{ isPreview: z.ZodBoolean; mode: z.ZodOptional; }, z.core.$strict>; accountId: z.ZodOptional; complianceRegion: z.ZodOptional>; }, z.core.$strict>; type ParsedOutputRootConfig = z.output; declare const ModuleTypeSchema: z.ZodEnum<{ json: "json"; text: "text"; esm: "esm"; cjs: "cjs"; python: "python"; "python-requirement": "python-requirement"; wasm: "wasm"; data: "data"; sourcemap: "sourcemap"; }>; type ModuleType = z.output; /** * Output Worker schema — the shape of the Worker's `worker.config.json` in the * Build Output Specification. Adds an optional `manifest` field to the base * schema. */ declare const OutputWorkerSchema: z.ZodObject<{ name: z.ZodString; compatibilityDate: z.ZodString; compatibilityFlags: z.ZodOptional>; assets: z.ZodOptional>; notFoundHandling: z.ZodOptional>; runWorkerFirst: z.ZodOptional, z.ZodBoolean]>>; }, z.core.$strict>>; domains: z.ZodOptional>; triggers: z.ZodOptional; addresses: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"fetch">; pattern: z.ZodString; zone: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"queue">; name: z.ZodString; deadLetterQueue: z.ZodOptional; maxBatchSize: z.ZodOptional; maxBatchTimeout: z.ZodOptional; maxConcurrency: z.ZodOptional>; maxRetries: z.ZodOptional; retryDelay: z.ZodOptional; visibilityTimeoutMs: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"scheduled">; schedule: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"connect">; protocol: z.ZodEnum<{ tcp: "tcp"; }>; port: z.ZodNumber; address: z.ZodOptional; }, z.core.$strict>], "type">>>; tailConsumers: z.ZodOptional; }, z.core.$strict>>>; cache: z.ZodOptional; }, z.core.$strict>>; placement: z.ZodOptional; hint: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; region: z.ZodString; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; host: z.ZodString; }, z.core.$strict>, z.ZodObject<{ mode: z.ZodOptional>; hostname: z.ZodString; }, z.core.$strict>]>>; limits: z.ZodOptional; subrequests: z.ZodOptional; }, z.core.$strict>>; logpush: z.ZodOptional; observability: z.ZodOptional; headSamplingRate: z.ZodOptional; redactQueryString: z.ZodOptional; issues: z.ZodOptional; }, z.core.$strict>>; logs: z.ZodOptional; headSamplingRate: z.ZodOptional; invocationLogs: z.ZodOptional; persist: z.ZodOptional; destinations: z.ZodOptional>; }, z.core.$strict>>; traces: z.ZodOptional; headSamplingRate: z.ZodOptional; persist: z.ZodOptional; destinations: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>>; workersDev: z.ZodOptional; previewUrls: z.ZodOptional; firstPartyWorker: z.ZodOptional; unsafe: z.ZodOptional>; capnp: z.ZodOptional; compiledSchema: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ basePath: z.ZodOptional; sourceSchemas: z.ZodOptional; compiledSchema: z.ZodString; }, z.core.$strict>]>>; }, z.core.$strict>>; env: z.ZodOptional>>>; exports: z.ZodOptional; state: z.ZodOptional>; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodOptional>; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"deleted">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"renamed">; renamedTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"transferred">; transferredTo: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; container: z.ZodOptional; storage: z.ZodLiteral<"sqlite">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"durable-object">; state: z.ZodLiteral<"expecting-transfer">; transferFrom: z.ZodString; storage: z.ZodLiteral<"legacy-kv">; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"worker">; cache: z.ZodOptional>; }, z.core.$strict>]>>>; manifest: z.ZodOptional; mainModule: z.ZodString; modules: z.ZodRecord; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; type ParsedOutputWorkerConfig = z.output; //#endregion //#region src/generate.d.ts interface GenerateTypesOptions { /** Path to the config file (relative to the generated `.d.ts`). */ configPath: string; /** * Package name used in the inline `import("")` type expressions * for `InferEnv`/`InferDurableNamespaces`/`InferMainModule`/`UnwrapConfig`. * * Defaults to `"@cloudflare/config"`. Integrations that bundle * `@cloudflare/config` (e.g. `@cloudflare/vite-plugin`) should pass their * own re-export path here so users don't need to depend on * `@cloudflare/config` directly. */ packageName?: string; } /** * Generate the content for worker-configuration.d.ts * * @example * ```typescript * import { generateTypes } from "@cloudflare/config"; * import { writeFileSync } from "node:fs"; * * const content = generateTypes({ * configPath: "./cloudflare.config.ts", * }); * * writeFileSync("worker-configuration.d.ts", content); * ``` */ declare function generateTypes({ configPath, packageName }: GenerateTypesOptions): string; //#endregion //#region src/convert.d.ts /** * Convert a parsed `@cloudflare/config` config into a Wrangler `RawConfig`. * * The caller is responsible for resolving any function/promise wrappers and * parsing the configuration before passing it in. * * @param config The parsed configuration. * @returns The corresponding Wrangler `RawConfig`. */ declare function convertToWranglerConfig(config: ParsedInputConfig): RawConfig; //#endregion //#region src/load.d.ts /** * @module * * The no-cache import logic in this file is adapted from `import-without-cache` * by Kevin Deng (https://github.com/sxzz/import-without-cache), published under * the MIT License and Copyright © 2025-PRESENT Kevin Deng. * * See https://github.com/sxzz/import-without-cache for the original code. */ /** * Dynamically import a Cloudflare config file from disk. * * Returns the module's default export plus the set of file paths imported * during resolution. * * @param configPath Filesystem path to the config file. Relative paths are * resolved against `process.cwd()`. */ declare function loadConfig(configPath: string): Promise; interface LoadConfigResult { /** The default export of the config module. */ config: unknown; /** * Absolute file paths imported while resolving the config. * `cf-worker` entrypoints are NOT included — they are * referenced for their specifier only and changes to their source should * not trigger a config reload. */ dependencies: Set; } /** * Register Node module hooks for loading Worker configs. Idempotent — * repeated calls return the same deregister function. * * - Handles `with { type: "cf-worker" }` import attributes by synthesising an * ES module whose default export is the entrypoint specifier. Relative * specifiers (`./`, `../`) are anchored to the importing module and emitted * as absolute paths; bare specifiers and virtual-module specifiers pass * through unchanged so consumers can apply their own resolution semantics. * The referenced module is NOT loaded, is NOT executed, and is NOT added to * the dependencies set. * - Handles `with { cf: "no-cache" }` import attributes (set internally by * `loadConfig`) by tagging the resolved URL with a unique UUID query * string so Node treats each import as a fresh module. The UUID is * propagated to all transitive imports via the parent URL, ensuring the * entire subgraph is re-evaluated. Imports inside `node_modules` are * skipped (treated as immutable for config purposes). */ declare function registerConfigHooks(): () => void; //#endregion //#region src/config-loader.d.ts type ConfigParseResult = z.ZodSafeParseSuccess | z.ZodSafeParseError; type ConfigSettingsParseResult = z.ZodSafeParseSuccess | z.ZodSafeParseError; interface LoadAndParseConfigResult { /** Zod result for the parsed configuration. */ result: ConfigParseResult; /** Transitive deps imported while resolving the config (node_modules excluded). */ dependencies: Set; } interface LoadAndParseConfigSettingsResult { /** Zod result containing only account and compliance settings. */ result: ConfigSettingsParseResult; /** Transitive deps imported while resolving the config (node_modules excluded). */ dependencies: Set; } /** Resolve and parse the default configuration export. */ declare function resolveAndParseConfig(input: unknown, ctx: ConfigContext): Promise; /** Resolve and parse only the account settings in a configuration definition. */ declare function resolveAndParseConfigSettings(input: unknown, ctx: ConfigContext): Promise; /** Load and parse `cloudflare.config.ts`'s default export. */ declare function loadAndParseConfig(configPath: string, ctx: ConfigContext): Promise; /** Load and parse only account settings from the default export. */ declare function loadAndParseConfigSettings(configPath: string, ctx: ConfigContext): Promise; //#endregion export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, AnalyticsEngineDatasetBindingSchema, ArtifactsBinding, AssetsBinding, AssetsSchema, BindingDevOptions, BindingSchema, Bindings, BrowserBinding, BrowserBindingSchema, CloudflareConfig, ConfigContext, type ConfigParseResult, type ConfigSettingsParseResult, ConnectTrigger, ContainerConfig, ContainerDefinition, D1Binding, D1BindingSchema, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectCreatedExportSchema, DurableObjectDeletedExport, DurableObjectDeletedExportSchema, DurableObjectExpectingTransferExport, DurableObjectExpectingTransferExportSchema, DurableObjectRenamedExport, DurableObjectRenamedExportSchema, DurableObjectTransferredExport, DurableObjectTransferredExportSchema, EmailTrigger, ExportSchema, Exports, FetchTrigger, FlagshipBinding, FlagshipBindingSchema, HyperdriveBinding, HyperdriveBindingSchema, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, InputConfigSchema, InputContainerSchema, InputSettingsSchema, type InputWorkerConfig, InputWorkerSchema, JsonBinding, KVBindingSchema, KnownBindingSchema, KvBinding, type LoadAndParseConfigResult, type LoadAndParseConfigSettingsResult, type LoadConfigResult, LogfwdrBinding, MediaBinding, type ModuleType, ModuleTypeSchema, MtlsCertificateBinding, OutputContainerSchema, OutputRootConfigSchema, OutputWorkerSchema, type ParsedInputConfig, type ParsedInputContainerConfig, type ParsedInputSettingsConfig, type ParsedInputWorkerConfig, type ParsedOutputContainerConfig, type ParsedOutputRootConfig, type ParsedOutputWorkerConfig, PipelineBinding, QueueBinding, QueueBindingSchema, QueueConsumerTrigger, R2Binding, R2BindingSchema, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, Settings, StreamBinding, TailConsumerSchema, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnsafeBindingSchema, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WorkerBinding, WorkerBindingSchema, WorkerConfig, WorkerDefinition, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerEntrypointExportSchema, WorkerLoaderBinding, WorkerReference, WorkflowBinding, bindings, convertToWranglerConfig, defineConfig, defineContainer, defineWorker, exports, generateTypes, loadAndParseConfig, loadAndParseConfigSettings, loadConfig, registerConfigHooks, resolveAndParseConfig, resolveAndParseConfigSettings, triggers, validateSingletonBindings };