wrangler 4.99.0 → 4.100.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experimental-config.d.mts","names":["Pipeline","PipelineRecord","Json","AgentMemoryBindingOptions","AgentMemoryBinding","AiBindingOptions","AiBinding","TypedAiBinding","TAiModelList","AiModelListType","AiModels","AiSearchBindingOptions","AiSearchBinding","AiSearchNamespaceBindingOptions","AiSearchNamespaceBinding","AnalyticsEngineDatasetBindingOptions","AnalyticsEngineDatasetBinding","ArtifactsBindingOptions","ArtifactsBinding","AssetsBinding","BrowserBindingOptions","BrowserBinding","D1BindingOptions","D1Binding","DispatchNamespaceBindingOptions","DispatchNamespaceBinding","DurableObjectBindingOptions","DurableObjectBinding","TypedDurableObjectBinding","TConfig$1","TExportName$1","FlagshipBindingOptions","FlagshipBinding","HyperdriveBindingOptions","HyperdriveBinding","ImagesBindingOptions","ImagesBinding$1","JsonBinding","T$1","KvBindingOptions","KvBinding","TypedKvBinding","TKey","LogfwdrBindingOptions","LogfwdrBinding","MediaBindingOptions","MediaBinding$1","MtlsCertificateBindingOptions","MtlsCertificateBinding","PipelineBindingOptions","PipelineBinding","TypedPipelineBinding","TRecord","QueueBindingOptions","QueueBinding","TypedQueueBinding","TBody","R2BindingOptions","R2Binding","RateLimitBindingOptions","RateLimitBinding","SecretBinding","SecretsStoreSecretBindingOptions","SecretsStoreSecretBinding","SendEmailBindingOptions","SendEmailBinding","StreamBindingOptions","StreamBinding$1","TextBinding","UnsafeBindingOptions","Record","UnsafeBinding","VectorizeBindingOptions","VectorizeBinding","VersionMetadataBinding","VpcNetworkBindingOptions","VpcNetworkBinding","VpcServiceBindingOptions","VpcServiceBinding","WebSearchBindingOptions","WebSearchBinding","WorkerBindingOptions","WorkerBinding","TypedWorkerBinding","WorkerLoaderBinding","WorkflowBindingOptions","WorkflowBinding","TypedWorkflowBinding","Bindings","bindings","FetchTriggerOptions","FetchTrigger","QueueConsumerTriggerOptions","QueueConsumerTrigger","ScheduledTriggerOptions","ScheduledTrigger","Triggers","triggers","DurableObjectExportOptions","DurableObjectExport","WorkflowExportOptions","WorkflowExport","Exports","exports","Binding","Trigger","Export","UserConfig","WorkerModule","Array","ConfigContext","CONFIG","WorkerDefinition","Promise","Pick","TypedWorkerDefinition","TWorkerName","InferWorkerName","InferExportsByType","InferWorkerEntrypointExports","UserConfigExport","defineWorker","resolveWorkerDefinition","DefaultModule","ExportedHandler","Rpc","WorkerEntrypointBranded","Constructor","DurableObjectBranded","WorkflowEntrypointBranded","TInstance","ExtractInstance","InstanceType","BindingTypeMap","TBinding","T","Ai","KVNamespace","Queue","AgentMemoryNamespace","AiSearchInstance","AiSearchNamespace","AnalyticsEngineDataset","Artifacts","Fetcher","BrowserRun","D1Database","DispatchNamespace","DurableObjectNamespace","Flagship","Hyperdrive","ImagesBinding","MediaBinding","RateLimit","R2Bucket","SecretsStoreSecret","SendEmail","StreamBinding","VectorizeIndex","WorkerVersionMetadata","WebSearch","WorkerLoader","Workflow","InferBindingType","TConfig","InferMainModule","TExportName","TModule","TWorkflow","P","K","TUnwrappedConfig$1","TName","TExportType","TExports","Exclude","UnwrapConfig","TUnwrappedConfig","InferEnv","TEnv","InferDurableNamespaces","$","A","B","C","D","E","F","G","H","I","J","L","M","N","O","Q","R","S","U","V","W","X","Y","Z","_","a","at","b","c","ct","d","dt","et","f","g","h","i","it","j","k","l","lt","m","n","nt","o","ot","p","q","r","rt","s","st","t","tt","u","ut","v","w","x","y","z"],"sources":["../../config/dist/public-Bjl70U0p.d.mts","../src/experimental-config/types.ts","../src/experimental-config/wrangler-definition.ts"],"sourcesContent":["import { Pipeline, PipelineRecord } from \"cloudflare:pipelines\";\n\n//#region src/utils.d.ts\n/**\n * Represents any valid JSON value.\n */\ntype Json = string | number | boolean | null | Json[] | {\n [key: string]: Json;\n};\n//#endregion\n//#region src/bindings.d.ts\ninterface AgentMemoryBindingOptions {\n /** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */\n namespace: string;\n /** Whether the Agent Memory binding should be remote in local development. */\n remote?: boolean;\n}\n/**\n * Agent Memory namespace binding. Each binding is scoped to a namespace and\n * allows agents to persist and recall memory.\n */\ninterface AgentMemoryBinding extends AgentMemoryBindingOptions {\n type: \"agent-memory\";\n}\ninterface AiBindingOptions {\n /** Whether the AI binding should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to the Workers AI project.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai\n */\ninterface AiBinding extends AiBindingOptions {\n type: \"ai\";\n}\n/**\n * Binding to the Workers AI project.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai\n */\ninterface TypedAiBinding<TAiModelList extends AiModelListType = AiModels> extends AiBinding {\n /** @internal Carries type parameters for inference */\n __typeParams: [TAiModelList];\n}\ninterface AiSearchBindingOptions {\n /** The user-chosen instance name. Must exist in Cloudflare at deploy time. */\n name: string;\n /** Whether the AI Search instance binding should be remote in local development. */\n remote?: boolean;\n}\n/**\n * AI Search instance binding. Each binding is bound directly to a single\n * pre-existing instance within the \"default\" namespace.\n */\ninterface AiSearchBinding extends AiSearchBindingOptions {\n type: \"ai-search\";\n}\ninterface AiSearchNamespaceBindingOptions {\n /** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */\n namespace: string;\n /** Whether the AI Search namespace binding should be remote in local development. */\n remote?: boolean;\n}\n/**\n * AI Search namespace binding. Each binding is scoped to a namespace and\n * allows dynamic instance CRUD within it.\n */\ninterface AiSearchNamespaceBinding extends AiSearchNamespaceBindingOptions {\n type: \"ai-search-namespace\";\n}\ninterface AnalyticsEngineDatasetBindingOptions {\n /** The name of this dataset to write to. */\n name?: string;\n}\n/**\n * Binding to an Analytics Engine dataset.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets\n */\ninterface AnalyticsEngineDatasetBinding extends AnalyticsEngineDatasetBindingOptions {\n type: \"analytics-engine-dataset\";\n}\ninterface ArtifactsBindingOptions {\n /** The namespace to use. */\n namespace: string;\n /** Whether to use the remote Artifacts service in local dev. */\n remote?: boolean;\n}\n/**\n * Binding to an Artifacts instance. Artifacts provides git-compatible file\n * storage on Cloudflare Workers.\n */\ninterface ArtifactsBinding extends ArtifactsBindingOptions {\n type: \"artifacts\";\n}\n/**\n * Binding to the Worker's static assets.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets\n */\ninterface AssetsBinding {\n type: \"assets\";\n}\ninterface BrowserBindingOptions {\n /** Whether the Browser binding should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to a headless browser usable from the Worker.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering\n */\ninterface BrowserBinding extends BrowserBindingOptions {\n type: \"browser\";\n}\ninterface D1BindingOptions {\n /** The UUID of this D1 database (not required). */\n id?: string;\n /** The name of this D1 database. */\n name?: string;\n /** Whether the D1 database should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to a D1 database.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases\n */\ninterface D1Binding extends D1BindingOptions {\n type: \"d1\";\n}\ninterface DispatchNamespaceBindingOptions {\n /** The namespace to bind to. */\n namespace: string;\n /** Details about the outbound Worker which will handle outbound requests from your namespace. */\n outbound?: {\n /** Name of the Worker handling the outbound requests. */\n workerName: string;\n /** (Optional) List of parameter names, for sending context from your dispatch Worker to the outbound handler. */\n parameters?: string[];\n };\n /** Whether the Dispatch Namespace should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to a Workers for Platforms dispatch namespace.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms\n */\ninterface DispatchNamespaceBinding extends DispatchNamespaceBindingOptions {\n type: \"dispatch-namespace\";\n}\ninterface DurableObjectBindingOptions {\n /** The name of the Worker that defines the Durable Object class. */\n workerName: string;\n /** The exported class name of the Durable Object. */\n exportName: string;\n}\n/**\n * Binding to a Durable Object class. `workerName` is the name of the Worker\n * that defines the class; `exportName` is the exported class name.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects\n */\ninterface DurableObjectBinding extends DurableObjectBindingOptions {\n type: \"durable-object\";\n}\n/**\n * Binding to a Durable Object class. `workerName` is the name of the Worker\n * that defines the class; `exportName` is the exported class name.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects\n */\ninterface TypedDurableObjectBinding<TConfig$1, TExportName$1 extends string> extends DurableObjectBinding {\n workerName: string;\n exportName: TExportName$1;\n /** @internal Carries the config type for inference */\n __config: TConfig$1;\n}\ninterface FlagshipBindingOptions {\n /** The Flagship app ID to bind to. */\n id: string;\n /** Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote. */\n remote?: boolean;\n}\n/** Binding to a Flagship feature-flag service. */\ninterface FlagshipBinding extends FlagshipBindingOptions {\n type: \"flagship\";\n}\ninterface HyperdriveBindingOptions {\n /** The ID of the Hyperdrive configuration. */\n id: string;\n /** The local database connection string used during local development. */\n localConnectionString?: string;\n}\n/**\n * Binding to a Hyperdrive configuration.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive\n */\ninterface HyperdriveBinding extends HyperdriveBindingOptions {\n type: \"hyperdrive\";\n}\ninterface ImagesBindingOptions {\n /** Whether the Images binding should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to Cloudflare Images.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images\n */\ninterface ImagesBinding$1 extends ImagesBindingOptions {\n type: \"images\";\n}\n/**\n * Inline JSON value made available to the Worker on `env` under the\n * binding name.\n */\ninterface JsonBinding<T$1 extends Json = Json> {\n type: \"json\";\n /** The JSON value made available to the Worker. */\n value: T$1;\n}\ninterface KvBindingOptions {\n /** The ID of the KV namespace. */\n id?: string;\n /** Whether the KV namespace should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to a Workers KV namespace.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces\n */\ninterface KvBinding extends KvBindingOptions {\n type: \"kv\";\n}\n/**\n * Binding to a Workers KV namespace.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces\n */\ninterface TypedKvBinding<TKey extends string = string> extends KvBinding {\n /** @internal Carries type parameters for inference */\n __typeParams: [TKey];\n}\ninterface LogfwdrBindingOptions {\n /** The destination for this logged message. */\n destination: string;\n}\n/** Binding for forwarding logs to logfwdr. */\ninterface LogfwdrBinding extends LogfwdrBindingOptions {\n type: \"logfwdr\";\n}\ninterface MediaBindingOptions {\n /** Whether the Media binding should be remote or not. */\n remote?: boolean;\n}\n/** Binding to Cloudflare Media Transformations. */\ninterface MediaBinding$1 extends MediaBindingOptions {\n type: \"media\";\n}\ninterface MtlsCertificateBindingOptions {\n /** The UUID of the uploaded mTLS certificate. */\n id: string;\n /** Whether the mTLS fetcher should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to an uploaded mTLS certificate.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates\n */\ninterface MtlsCertificateBinding extends MtlsCertificateBindingOptions {\n type: \"mtls-certificate\";\n}\ninterface PipelineBindingOptions {\n /** Name of the Pipeline to bind. */\n name: string;\n /** Whether the pipeline should be remote or not in local development. */\n remote?: boolean;\n}\n/** Binding to a Cloudflare Pipeline. */\ninterface PipelineBinding extends PipelineBindingOptions {\n type: \"pipeline\";\n}\n/** Binding to a Cloudflare Pipeline. */\ninterface TypedPipelineBinding<TRecord extends PipelineRecord = PipelineRecord> extends PipelineBinding {\n /** @internal Carries type parameters for inference */\n __typeParams: [TRecord];\n}\ninterface QueueBindingOptions {\n /** The name of this Queue. */\n name: string;\n /** The number of seconds to wait before delivering a message. */\n deliveryDelay?: number;\n /** Whether the Queue producer should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Producer binding to a Cloudflare Queue.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues\n */\ninterface QueueBinding extends QueueBindingOptions {\n type: \"queue\";\n}\n/**\n * Producer binding to a Cloudflare Queue.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues\n */\ninterface TypedQueueBinding<TBody = unknown> extends QueueBinding {\n /** @internal Carries type parameters for inference */\n __typeParams: [TBody];\n}\ninterface R2BindingOptions {\n /** The name of this R2 bucket at the edge. */\n name?: string;\n /** The jurisdiction that the bucket exists in. Default if not present. */\n jurisdiction?: string;\n /** Whether the R2 bucket should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to an R2 bucket.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets\n */\ninterface R2Binding extends R2BindingOptions {\n type: \"r2\";\n}\ninterface RateLimitBindingOptions {\n /** The namespace ID for this rate limiter. */\n namespace: string;\n /** Simple rate limiting configuration. */\n simple: {\n /** The maximum number of requests allowed in the time period. */\n limit: number;\n /** The time period in seconds (10 for ten seconds, 60 for one minute). */\n period: 10 | 60;\n };\n}\n/** Binding to a rate limiter. */\ninterface RateLimitBinding extends RateLimitBindingOptions {\n type: \"rate-limit\";\n}\n/**\n * Declares a secret that is required by your Worker, exposed on `env` under\n * the binding name.\n *\n * When defined, this binding:\n * - Replaces .dev.vars/.env/process.env inference for type generation\n * - Enables local dev validation with warnings for missing secrets\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property\n */\ninterface SecretBinding {\n type: \"secret\";\n}\ninterface SecretsStoreSecretBindingOptions {\n /** ID of the secret store. */\n storeId: string;\n /** Name of the secret. */\n secretName: string;\n}\n/** Binding to a Secrets Store secret. */\ninterface SecretsStoreSecretBinding extends SecretsStoreSecretBindingOptions {\n type: \"secrets-store-secret\";\n}\ninterface SendEmailBindingOptions {\n /** If this binding should be restricted to a specific verified address. */\n destinationAddress?: string;\n /** If this binding should be restricted to a set of verified addresses. */\n allowedDestinationAddresses?: string[];\n /** If this binding should be restricted to a set of sender addresses. */\n allowedSenderAddresses?: string[];\n /** Whether the binding should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding for sending email from inside the Worker.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings\n */\ninterface SendEmailBinding extends SendEmailBindingOptions {\n type: \"send-email\";\n}\ninterface StreamBindingOptions {\n /** Whether the Stream binding should be remote or not in local development. */\n remote?: boolean;\n}\n/** Binding to Cloudflare Stream. */\ninterface StreamBinding$1 extends StreamBindingOptions {\n type: \"stream\";\n}\n/**\n * Inline string value made available to the Worker on `env` under the\n * binding name.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables\n */\ninterface TextBinding<T$1 extends string = string> {\n type: \"text\";\n /** The string value made available to the Worker. */\n value: T$1;\n}\ninterface UnsafeBindingOptions {\n /** Local-dev plugin configuration for this unsafe binding. */\n dev?: {\n /** The plugin package that provides the binding's local-dev implementation. */\n plugin: {\n package: string;\n name: string;\n };\n /** Plugin-specific options. */\n options?: Record<string, unknown>;\n };\n [key: string]: unknown;\n}\n/**\n * Escape-hatch binding for runtime features that aren't directly supported\n * by this configuration. Included in the Worker's upload metadata without\n * changes.\n */\ninterface UnsafeBinding extends UnsafeBindingOptions {\n type: `unsafe:${string}`;\n}\ninterface VectorizeBindingOptions {\n /** The name of the Vectorize index. */\n name: string;\n /** Whether the Vectorize index should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to a Vectorize index.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes\n */\ninterface VectorizeBinding extends VectorizeBindingOptions {\n type: \"vectorize\";\n}\n/** Binding to the Worker version's metadata. */\ninterface VersionMetadataBinding {\n type: \"version-metadata\";\n}\ntype VpcNetworkBindingOptions = {\n /** The tunnel ID of the Cloudflare Tunnel to route traffic through. Mutually exclusive with `networkId`. */\n tunnelId: string;\n /** Whether the VPC network is remote or not. */\n remote?: boolean;\n} | {\n /** The network ID to route traffic through. Mutually exclusive with `tunnelId`. */\n networkId: string;\n /** Whether the VPC network is remote or not. */\n remote?: boolean;\n};\n/** Binding to a VPC network. */\ntype VpcNetworkBinding = VpcNetworkBindingOptions & {\n type: \"vpc-network\";\n};\ninterface VpcServiceBindingOptions {\n /** The service ID of the VPC connectivity service. */\n id: string;\n /** Whether the VPC service is remote or not. */\n remote?: boolean;\n}\n/** Binding to a VPC service. */\ninterface VpcServiceBinding extends VpcServiceBindingOptions {\n type: \"vpc-service\";\n}\ninterface WebSearchBindingOptions {\n /** Whether the Web Search binding should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Cloudflare Web Search binding. There is exactly one shared web corpus, so\n * the binding is zero-config — only the variable name is required.\n */\ninterface WebSearchBinding extends WebSearchBindingOptions {\n type: \"web-search\";\n}\ninterface WorkerBindingOptions {\n /** The name of the bound Worker. */\n workerName: string;\n /** The named export to bind to (defaults to the default export). */\n exportName?: string;\n /** Optional properties that will be made available to the service via `ctx.props`. */\n props?: Record<string, unknown>;\n /** Whether the service binding should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Service binding (Worker-to-Worker). `workerName` is the name of the bound\n * Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to\n * the default export).\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings\n */\ninterface WorkerBinding extends WorkerBindingOptions {\n type: \"worker\";\n}\n/**\n * Service binding (Worker-to-Worker). `workerName` is the name of the bound\n * Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to\n * the default export).\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings\n */\ninterface TypedWorkerBinding<TConfig$1, TExportName$1 extends string> extends WorkerBinding {\n workerName: string;\n exportName: TExportName$1;\n /** @internal Carries the config type for inference */\n __config: TConfig$1;\n}\n/** Binding to a Worker Loader. */\ninterface WorkerLoaderBinding {\n type: \"worker-loader\";\n}\ninterface WorkflowBindingOptions {\n /** The name of the Worker that defines the Workflow. */\n workerName: string;\n /** The exported class name of the Workflow. */\n exportName: string;\n /** Whether the Workflow binding should be remote or not in local development. */\n remote?: boolean;\n}\n/**\n * Binding to a Workflow. `workerName` is the name of the Worker that defines\n * the Workflow; `exportName` is the exported `WorkflowEntrypoint` class name.\n */\ninterface WorkflowBinding extends WorkflowBindingOptions {\n type: \"workflow\";\n}\n/**\n * Binding to a Workflow. `workerName` is the name of the Worker that defines\n * the Workflow; `exportName` is the exported `WorkflowEntrypoint` class name.\n */\ninterface TypedWorkflowBinding<TConfig$1, TExportName$1 extends string> extends WorkflowBinding {\n workerName: string;\n exportName: TExportName$1;\n /** @internal Carries the config type for inference */\n __config: TConfig$1;\n}\ninterface Bindings {\n /**\n * Agent Memory namespace binding. Each binding is scoped to a namespace and\n * allows agents to persist and recall memory.\n */\n agentMemory(options: AgentMemoryBindingOptions): AgentMemoryBinding;\n /**\n * Binding to the Workers AI project.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai\n */\n ai<TAiModelList extends AiModelListType = AiModels>(options?: AiBindingOptions): TypedAiBinding<TAiModelList>;\n /**\n * AI Search instance binding. Each binding is bound directly to a single\n * pre-existing instance within the \"default\" namespace.\n */\n aiSearch(options: AiSearchBindingOptions): AiSearchBinding;\n /**\n * AI Search namespace binding. Each binding is scoped to a namespace and\n * allows dynamic instance CRUD within it.\n */\n aiSearchNamespace(options: AiSearchNamespaceBindingOptions): AiSearchNamespaceBinding;\n /**\n * Binding to an Analytics Engine dataset.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets\n */\n analyticsEngineDataset(options?: AnalyticsEngineDatasetBindingOptions): AnalyticsEngineDatasetBinding;\n /**\n * Binding to an Artifacts instance. Artifacts provides git-compatible file\n * storage on Cloudflare Workers.\n */\n artifacts(options: ArtifactsBindingOptions): ArtifactsBinding;\n /**\n * Binding to the Worker's static assets.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets\n */\n assets(): AssetsBinding;\n /**\n * Binding to a headless browser usable from the Worker.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering\n */\n browser(options?: BrowserBindingOptions): BrowserBinding;\n /**\n * Binding to a D1 database.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases\n */\n d1(options?: D1BindingOptions): D1Binding;\n /**\n * Binding to a Workers for Platforms dispatch namespace.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms\n */\n dispatchNamespace(options: DispatchNamespaceBindingOptions): DispatchNamespaceBinding;\n /**\n * Binding to a Durable Object class. `workerName` is the name of the Worker\n * that defines the class; `exportName` is the exported class name.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects\n */\n durableObject(options: DurableObjectBindingOptions): DurableObjectBinding;\n /** Binding to a Flagship feature-flag service. */\n flagship(options: FlagshipBindingOptions): FlagshipBinding;\n /**\n * Binding to a Hyperdrive configuration.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive\n */\n hyperdrive(options: HyperdriveBindingOptions): HyperdriveBinding;\n /**\n * Binding to Cloudflare Images.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images\n */\n images(options?: ImagesBindingOptions): ImagesBinding$1;\n /**\n * Inline JSON value made available to the Worker on `env` under the\n * binding name.\n */\n json<T$1 extends Json>(value: T$1): JsonBinding<T$1>;\n /**\n * Binding to a Workers KV namespace.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces\n */\n kv<TKey extends string = string>(options?: KvBindingOptions): TypedKvBinding<TKey>;\n /** Binding for forwarding logs to logfwdr. */\n logfwdr(options: LogfwdrBindingOptions): LogfwdrBinding;\n /** Binding to Cloudflare Media Transformations. */\n media(options?: MediaBindingOptions): MediaBinding$1;\n /**\n * Binding to an uploaded mTLS certificate.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates\n */\n mtlsCertificate(options: MtlsCertificateBindingOptions): MtlsCertificateBinding;\n /** Binding to a Cloudflare Pipeline. */\n pipeline<TRecord extends PipelineRecord = PipelineRecord>(options: PipelineBindingOptions): TypedPipelineBinding<TRecord>;\n /**\n * Producer binding to a Cloudflare Queue.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues\n */\n queue<TBody = unknown>(options: QueueBindingOptions): TypedQueueBinding<TBody>;\n /**\n * Binding to an R2 bucket.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets\n */\n r2(options?: R2BindingOptions): R2Binding;\n /** Binding to a rate limiter. */\n rateLimit(options: RateLimitBindingOptions): RateLimitBinding;\n /**\n * Declares a secret that is required by your Worker, exposed on `env` under\n * the binding name.\n *\n * When defined, this binding:\n * - Replaces .dev.vars/.env/process.env inference for type generation\n * - Enables local dev validation with warnings for missing secrets\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property\n */\n secret(): SecretBinding;\n /** Binding to a Secrets Store secret. */\n secretsStoreSecret(options: SecretsStoreSecretBindingOptions): SecretsStoreSecretBinding;\n /**\n * Binding for sending email from inside the Worker.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings\n */\n sendEmail(options?: SendEmailBindingOptions): SendEmailBinding;\n /** Binding to Cloudflare Stream. */\n stream(options?: StreamBindingOptions): StreamBinding$1;\n /**\n * Inline string value made available to the Worker on `env` under the\n * binding name.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables\n */\n text<T$1 extends string>(value: T$1): TextBinding<T$1>;\n /**\n * Binding to a Vectorize index.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes\n */\n vectorize(options: VectorizeBindingOptions): VectorizeBinding;\n /** Binding to the Worker version's metadata. */\n versionMetadata(): VersionMetadataBinding;\n /** Binding to a VPC network. */\n vpcNetwork(options: VpcNetworkBindingOptions): VpcNetworkBinding;\n /** Binding to a VPC service. */\n vpcService(options: VpcServiceBindingOptions): VpcServiceBinding;\n /**\n * Cloudflare Web Search binding. There is exactly one shared web corpus, so\n * the binding is zero-config — only the variable name is required.\n */\n webSearch(options?: WebSearchBindingOptions): WebSearchBinding;\n /**\n * Service binding (Worker-to-Worker). `workerName` is the name of the bound\n * Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to\n * the default export).\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings\n */\n worker(options: WorkerBindingOptions): WorkerBinding;\n /** Binding to a Worker Loader. */\n workerLoader(): WorkerLoaderBinding;\n}\ndeclare const bindings: Bindings;\n//#endregion\n//#region src/triggers.d.ts\ninterface FetchTriggerOptions {\n /**\n * A route that your Worker should be published to.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes\n */\n pattern: string;\n /**\n * The DNS zone the pattern is attached to. Required when the\n * pattern is ambiguous.\n */\n zone?: string;\n}\n/**\n * Fetch trigger — a route that your Worker should be published to.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes\n */\ninterface FetchTrigger extends FetchTriggerOptions {\n type: \"fetch\";\n}\ninterface QueueConsumerTriggerOptions {\n /** The name of the queue from which this consumer should consume. */\n name: string;\n /** The queue to send messages that failed to be consumed. */\n deadLetterQueue?: string;\n /** The maximum number of messages per batch. */\n maxBatchSize?: number;\n /** The maximum number of seconds to wait to fill a batch with messages. */\n maxBatchTimeout?: number;\n /**\n * The maximum number of concurrent consumer Worker invocations.\n * Leaving this unset will allow your consumer to scale to the\n * maximum concurrency needed to keep up with the message backlog.\n */\n maxConcurrency?: number | null;\n /** The maximum number of retries for each message. */\n maxRetries?: number;\n /** The number of seconds to wait before retrying a message. */\n retryDelay?: number;\n /** The number of milliseconds to wait for pulled messages to become visible again. */\n visibilityTimeoutMs?: number;\n}\n/**\n * Queue consumer trigger — invokes this Worker when messages arrive on the\n * named queue.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues\n */\ninterface QueueConsumerTrigger extends QueueConsumerTriggerOptions {\n type: \"queue\";\n}\ninterface ScheduledTriggerOptions {\n /**\n * A \"cron\" definition to trigger a Worker's \"scheduled\" function.\n *\n * Lets you call Workers periodically, much like a cron job.\n *\n * More details here https://developers.cloudflare.com/workers/platform/cron-triggers\n */\n schedule: string;\n}\n/**\n * Scheduled (cron) trigger — invokes this Worker on the given schedules.\n *\n * More details here https://developers.cloudflare.com/workers/platform/cron-triggers\n */\ninterface ScheduledTrigger extends ScheduledTriggerOptions {\n type: \"scheduled\";\n}\n/**\n * Event triggers — fetch routes, queue consumers, and cron schedules\n * — that invoke this Worker. Construct entries with `triggers.fetch(...)`,\n * `triggers.queue(...)`, or `triggers.scheduled(...)`.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers\n */\ninterface Triggers {\n /**\n * Fetch trigger — a route that your Worker should be published to.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes\n */\n fetch(options: FetchTriggerOptions): FetchTrigger;\n /**\n * Queue consumer trigger — invokes this Worker when messages arrive on the\n * named queue.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues\n */\n queue(options: QueueConsumerTriggerOptions): QueueConsumerTrigger;\n /**\n * Scheduled (cron) trigger — invokes this Worker on the given schedules.\n *\n * More details here https://developers.cloudflare.com/workers/platform/cron-triggers\n */\n scheduled(options: ScheduledTriggerOptions): ScheduledTrigger;\n}\n/**\n * Triggers builder for configuring event triggers.\n *\n * @example\n * ```typescript\n * import { defineWorker, triggers } from \"@cloudflare/config\";\n *\n * export default defineWorker({\n * triggers: [\n * triggers.fetch({ pattern: \"example.com/*\", zone: \"example.com\" }),\n * triggers.queue({ name: \"my-queue\" }),\n * triggers.scheduled({ schedule: \"0 * * * *\" }),\n * triggers.scheduled({ schedule: \"30 0 * * *\" }),\n * ],\n * });\n * ```\n */\ndeclare const triggers: Triggers;\n//#endregion\n//#region src/exports.d.ts\ninterface DurableObjectExportOptions {\n /**\n * Storage backend for the Durable Object.\n *\n * - `\"sqlite\"`: selects the SQLite-backed storage engine\n * (recommended for new classes).\n * - `\"legacy-kv\"`: selects the legacy key-value storage engine.\n */\n storage: \"sqlite\" | \"legacy-kv\";\n}\n/**\n * Declares a Durable Object class defined by this Worker.\n *\n * For more information about Durable Objects, see the documentation at\n * https://developers.cloudflare.com/workers/learning/using-durable-objects\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects\n */\ninterface DurableObjectExport extends DurableObjectExportOptions {\n type: \"durable-object\";\n}\ninterface WorkflowExportOptions {\n /** The name of the Workflow. */\n name: string;\n /** Optional limits for the Workflow. */\n limits?: {\n /** Maximum number of steps a Workflow instance can execute. */\n steps?: number;\n };\n /** Optional cron schedules for automatically triggering workflow instances. */\n schedules?: string[];\n}\n/** Declares a Workflow defined by this Worker. */\ninterface WorkflowExport extends WorkflowExportOptions {\n type: \"workflow\";\n}\n/**\n * Configuration for named exports declared by the Worker. Each entry's\n * key is the exported class name; the value configures the export.\n */\ninterface Exports {\n /**\n * Declares a Durable Object class defined by this Worker.\n *\n * For more information about Durable Objects, see the documentation at\n * https://developers.cloudflare.com/workers/learning/using-durable-objects\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects\n */\n durableObject(options: DurableObjectExportOptions): DurableObjectExport;\n}\n/**\n * Exports builder for configuring Worker exports.\n *\n * @example\n * ```typescript\n * import { defineWorker, exports } from \"@cloudflare/config\";\n *\n * export default defineWorker({\n * exports: {\n * MyDurableObject: exports.durableObject({ storage: \"sqlite\" }),\n * },\n * });\n * ```\n */\ndeclare const exports: Exports;\n//#endregion\n//#region src/types.d.ts\n/**\n * Union of all binding definitions accepted in `env`.\n */\ntype Binding = AgentMemoryBinding | AiBinding | AiSearchBinding | AiSearchNamespaceBinding | AnalyticsEngineDatasetBinding | ArtifactsBinding | AssetsBinding | BrowserBinding | D1Binding | DispatchNamespaceBinding | DurableObjectBinding | FlagshipBinding | HyperdriveBinding | ImagesBinding$1 | JsonBinding | KvBinding | LogfwdrBinding | MediaBinding$1 | MtlsCertificateBinding | PipelineBinding | QueueBinding | R2Binding | RateLimitBinding | SecretBinding | SecretsStoreSecretBinding | SendEmailBinding | StreamBinding$1 | TextBinding | UnsafeBinding | VectorizeBinding | VersionMetadataBinding | VpcNetworkBinding | VpcServiceBinding | WebSearchBinding | WorkerBinding | WorkerLoaderBinding;\n/**\n * Union of all trigger definitions accepted in `triggers`.\n */\ntype Trigger = FetchTrigger | QueueConsumerTrigger | ScheduledTrigger;\n/**\n * Union of all export definitions accepted in `exports`.\n */\ntype Export = DurableObjectExport;\n/**\n * Worker configuration. This is the input shape passed to\n * [`defineWorker`](https://developers.cloudflare.com/workers/wrangler/configuration/).\n *\n * Fields are validated at runtime by `ConfigSchema` and normalised before\n * being passed to downstream tooling.\n */\ninterface UserConfig {\n /**\n * The name of your Worker.\n */\n name?: string;\n /**\n * This is the ID of the account associated with your zone.\n * You might have more than one account, so make sure to use\n * the ID of the account associated with the zone/route you\n * provide, if you provide one. It can also be specified through\n * the CLOUDFLARE_ACCOUNT_ID environment variable.\n */\n accountId?: string;\n /**\n * A date in the form yyyy-mm-dd, which will be used to determine\n * which version of the Workers runtime is used.\n *\n * More details at https://developers.cloudflare.com/workers/configuration/compatibility-dates\n */\n compatibilityDate?: string;\n /**\n * A list of flags that enable features from upcoming features of\n * the Workers runtime, usually used together with `compatibilityDate`.\n *\n * More details at https://developers.cloudflare.com/workers/configuration/compatibility-flags/\n *\n * @default []\n */\n compatibilityFlags?: string[];\n /**\n * The entrypoint module that will be executed.\n *\n * May be either a path string (e.g. `\"./src/index.ts\"`) or a module\n * namespace imported with the `cf-worker` import attribute.\n *\n * @example\n * ```ts\n * import * as entrypoint from \"./src\" with { type: \"cf-worker\" };\n * export default defineWorker({ entrypoint });\n * ```\n */\n entrypoint?: string | WorkerModule;\n /**\n * Specify the directory of static assets to deploy/serve.\n *\n * More details at https://developers.cloudflare.com/workers/frameworks/\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets\n */\n assets?: {\n /** How to handle HTML requests. */\n htmlHandling?: \"auto-trailing-slash\" | \"drop-trailing-slash\" | \"force-trailing-slash\" | \"none\";\n /** How to handle requests that do not match an asset. */\n notFoundHandling?: \"single-page-application\" | \"404-page\" | \"none\";\n /**\n * Matches will be routed to the User Worker, and matches to negative rules will go to the Asset Worker.\n *\n * Can also be `true`, indicating that every request should be routed to the User Worker.\n */\n runWorkerFirst?: string[] | boolean;\n };\n /**\n * Custom domains that your Worker should be published to.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes\n */\n domains?: string[];\n /**\n * Event triggers — fetch routes, queue consumers, and cron schedules\n * — that invoke this Worker. Construct entries with `triggers.fetch(...)`,\n * `triggers.queue(...)`, or `triggers.scheduled(...)`.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers\n */\n triggers?: Trigger[];\n /**\n * A list of Tail Workers that are bound to this Worker.\n *\n * `@cloudflare/config` unifies regular and streaming tail consumers under\n * a single field; pass `streaming: true` to forward streaming tail events.\n *\n * @default []\n */\n tailConsumers?: Array<{\n /** The name of the service tail events will be forwarded to. */\n workerName: string;\n /** Whether to stream tail events in real time. */\n streaming?: boolean;\n }>;\n /**\n * Specify the cache behavior of the Worker.\n */\n cache?: {\n /** If cache is enabled for this Worker. */\n enabled: boolean;\n };\n /**\n * Specify how the Worker should be located to minimize round-trip time.\n *\n * More details: https://developers.cloudflare.com/workers/platform/smart-placement/\n */\n placement?: {\n mode: \"off\" | \"smart\";\n hint?: string;\n } | {\n mode?: \"targeted\";\n region: string;\n } | {\n mode?: \"targeted\";\n host: string;\n } | {\n mode?: \"targeted\";\n hostname: string;\n };\n /**\n * Specify limits for runtime behavior.\n * Only supported for the \"standard\" Usage Model.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#limits\n */\n limits?: {\n /** Maximum allowed CPU time for a Worker's invocation in milliseconds. */\n cpuMs?: number;\n /** Maximum allowed number of fetch requests that a Worker's invocation can execute. */\n subrequests?: number;\n };\n /**\n * Send Trace Events from this Worker to Workers Logpush.\n *\n * This will not configure a corresponding Logpush job automatically.\n *\n * For more information about Workers Logpush, see:\n * https://blog.cloudflare.com/logpush-for-workers/\n */\n logpush?: boolean;\n /**\n * Specify the observability behavior of the Worker.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability\n */\n observability?: {\n /** If observability is enabled for this Worker. */\n enabled?: boolean;\n /** The sampling rate. */\n headSamplingRate?: number;\n logs?: {\n enabled?: boolean;\n /** The sampling rate. */\n headSamplingRate?: number;\n /** Set to false to disable invocation logs. */\n invocationLogs?: boolean;\n /**\n * If logs should be persisted to the Cloudflare observability platform where they can be queried in the dashboard.\n *\n * @default true\n */\n persist?: boolean;\n /**\n * What destinations logs emitted from the Worker should be sent to.\n *\n * @default []\n */\n destinations?: string[];\n };\n traces?: {\n enabled?: boolean;\n /** The sampling rate. */\n headSamplingRate?: number;\n /**\n * If traces should be persisted to the Cloudflare observability platform where they can be queried in the dashboard.\n *\n * @default true\n */\n persist?: boolean;\n /**\n * What destinations traces emitted from the Worker should be sent to.\n *\n * @default []\n */\n destinations?: string[];\n };\n };\n /**\n * Whether we use `<name>.<subdomain>.workers.dev` to\n * test and deploy your Worker.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workersdev\n *\n * @default true\n */\n workersDev?: boolean;\n /**\n * Whether we use `<version>-<name>.<subdomain>.workers.dev` to\n * serve Preview URLs for your Worker.\n *\n * @default false\n */\n previewUrls?: boolean;\n /**\n * Specify the compliance region mode of the Worker.\n *\n * Although if the user does not specify a compliance region, the default is `public`,\n * it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable.\n */\n complianceRegion?: \"public\" | \"fedramp-high\";\n /**\n * Designates this Worker as an internal-only \"first-party\" Worker.\n *\n * @internal\n */\n firstPartyWorker?: boolean;\n /**\n * \"Unsafe\" tables for runtime features that aren't directly supported by\n * this configuration. Values are forwarded verbatim in the Worker's\n * upload metadata.\n *\n * @default {}\n */\n unsafe?: {\n /**\n * Arbitrary key/value pairs that will be included in the uploaded metadata. Values specified\n * here will always be applied to metadata last, so can add new or override existing fields.\n */\n metadata?: Record<string, unknown>;\n /**\n * Used for internal capnp uploads for the Workers runtime.\n */\n capnp?: {\n basePath: string;\n sourceSchemas: string[];\n compiledSchema?: never;\n } | {\n basePath?: never;\n sourceSchemas?: never;\n compiledSchema: string;\n };\n };\n /**\n * Bindings exposed on the Worker's `env` object. Construct entries with\n * `bindings.kv(...)`, `bindings.r2(...)`, etc.\n */\n env?: Record<string, Binding>;\n /**\n * Configuration for named exports declared by the Worker. Each entry's\n * key is the exported class name; the value configures the export.\n * Construct entries with `exports.durableObject(...)` or\n * `exports.workflow(...)`.\n *\n * Two export kinds are supported:\n *\n * - `durable-object`: declares a Durable Object class defined by this\n * Worker. For more information about Durable Objects, see the\n * documentation at\n * https://developers.cloudflare.com/workers/learning/using-durable-objects\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects\n *\n * - `workflow`: declares a Workflow defined by this Worker.\n */\n exports?: Record<string, Export>;\n}\n//#endregion\n//#region src/worker-definition.d.ts\ninterface ConfigContext {\n /**\n * The mode the config is being evaluated in.\n * Set via the `--mode` CLI flag.\n * In Vite the mode defaults to `development` in `vite dev` and `production` in `vite build` ([more info](https://vite.dev/guide/env-and-mode.html#modes)).\n * In Wrangler the mode defaults to `undefined`.\n */\n mode: string | undefined;\n}\ndeclare const CONFIG: unique symbol;\n/**\n * Base shape of a Worker definition. Carries the resolved config and the\n * untyped cross-worker binding helpers.\n */\ninterface WorkerDefinition<TConfig$1 extends UserConfig = UserConfig> extends Pick<Bindings, \"durableObject\" | \"worker\"> {\n [CONFIG]: TConfig$1 | Promise<TConfig$1> | ((ctx: ConfigContext) => TConfig$1 | Promise<TConfig$1>);\n}\n/**\n * Worker definition with typed cross-worker binding helpers.\n */\ninterface TypedWorkerDefinition<TConfig$1 extends UserConfig, TWorkerName extends string = InferWorkerName<TConfig$1>> extends WorkerDefinition<TConfig$1> {\n /**\n * Binding to a Durable Object class. `workerName` is the name of the Worker\n * that defines the class; `exportName` is the exported class name.\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects\n */\n durableObject<TExportName$1 extends InferExportsByType<TConfig$1, \"durable-object\">>(options: {\n workerName: TWorkerName;\n exportName: TExportName$1;\n }): TypedDurableObjectBinding<TConfig$1, TExportName$1>;\n /**\n * Service binding (Worker-to-Worker). `workerName` is the name of the bound\n * Worker; `exportName` selects a named `WorkerEntrypoint` export (defaults to\n * the default export).\n *\n * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings\n */\n worker<TExportName$1 extends InferWorkerEntrypointExports<TConfig$1> | undefined = undefined>(options: {\n workerName: TWorkerName;\n exportName?: TExportName$1;\n props?: Record<string, unknown>;\n remote?: boolean;\n }): TypedWorkerBinding<TConfig$1, TExportName$1 extends string ? TExportName$1 : \"default\">;\n}\ntype UserConfigExport<T$1 extends UserConfig = UserConfig> = T$1 | Promise<T$1> | ((ctx: ConfigContext) => T$1 | Promise<T$1>);\ndeclare function defineWorker<const T$1 extends UserConfig>(config: (ctx: ConfigContext) => (UserConfig & T$1) | Promise<UserConfig & T$1>): TypedWorkerDefinition<T$1>;\ndeclare function defineWorker<const T$1 extends UserConfig>(config: (UserConfig & T$1) | Promise<UserConfig & T$1>): TypedWorkerDefinition<T$1>;\ndeclare function resolveWorkerDefinition(def: unknown, ctx: ConfigContext): Promise<unknown>;\n//#endregion\n//#region src/inference.d.ts\n/**\n * The Worker's entry module, imported with the `{ type: \"cf-worker\" }` import attribute\n * @example\n * ```ts\n * import * as entrypoint from \"./src\" with { type: \"cf-worker\" };\n * ```\n */\ntype WorkerModule = Record<string, any>;\n/**\n * Default module type representing an unknown Worker's exports.\n * - default export can be `ExportedHandler` or a `WorkerEntrypoint` class constructor\n * - named exports can be `WorkerEntrypoint`, `DurableObject`, or `WorkflowEntrypoint` class constructors\n */\ninterface DefaultModule {\n default?: ExportedHandler | Constructor<Rpc.WorkerEntrypointBranded>;\n [key: string]: ExportedHandler | Constructor<Rpc.WorkerEntrypointBranded> | Constructor<Rpc.DurableObjectBranded> | Constructor<Rpc.WorkflowEntrypointBranded> | undefined;\n}\n/**\n * Represents a class constructor that creates instances of TInstance.\n */\ntype Constructor<TInstance> = new (...args: any[]) => TInstance;\n/**\n * Extracts the instance type from a class constructor if it extends `TInstance`.\n */\ntype ExtractInstance<T$1, TInstance> = T$1 extends Constructor<TInstance> ? InstanceType<T$1> : never;\n/**\n * Mapping from binding type literals to Cloudflare runtime types.\n *\n * Entries fall into two groups:\n * - Parameterized bindings (ai, json, kv, pipeline, queue, text) refine their\n * runtime type from the binding instance via nominal matches against the\n * `Typed*Binding` / `JsonBinding` / `TextBinding` interfaces from\n * `./bindings`. When `TBinding` does not match, the entry falls back to the\n * unparameterized runtime type.\n * - Non-parameterized bindings map their type literal directly to a runtime\n * type and ignore `TBinding`.\n *\n * IMPORTANT: The right-hand-side identifiers in this map (e.g. `KVNamespace`,\n * `ImagesBinding`, `Fetcher`) must resolve to the ambient runtime types from\n * `@cloudflare/workers-types`, not to local config interfaces. Several local\n * binding interfaces in `./bindings.ts` (`ImagesBinding`, `MediaBinding`,\n * `StreamBinding`) share names with ambient globals — importing those local\n * types into this file silently shadows the globals and breaks `InferEnv`.\n * Only import the `Typed*Binding`, `JsonBinding`, and `TextBinding` interfaces\n * from `./bindings` (their names do not collide with ambient globals); never\n * widen the import to a wildcard or to the plain `*Binding` interfaces.\n */\ninterface BindingTypeMap<TBinding> {\n ai: TBinding extends TypedAiBinding<infer T> ? Ai<T> : Ai;\n json: TBinding extends JsonBinding<infer T> ? T : never;\n kv: TBinding extends TypedKvBinding<infer T> ? KVNamespace<T> : KVNamespace;\n pipeline: TBinding extends TypedPipelineBinding<infer T> ? Pipeline<T> : Pipeline;\n queue: TBinding extends TypedQueueBinding<infer T> ? Queue<T> : Queue;\n text: TBinding extends TextBinding<infer T> ? T : never;\n \"agent-memory\": AgentMemoryNamespace;\n \"ai-search\": AiSearchInstance;\n \"ai-search-namespace\": AiSearchNamespace;\n \"analytics-engine-dataset\": AnalyticsEngineDataset;\n artifacts: Artifacts;\n assets: Fetcher;\n browser: BrowserRun;\n d1: D1Database;\n \"dispatch-namespace\": DispatchNamespace;\n \"durable-object\": DurableObjectNamespace;\n flagship: Flagship;\n hyperdrive: Hyperdrive;\n images: ImagesBinding;\n logfwdr: any;\n media: MediaBinding;\n \"mtls-certificate\": Fetcher;\n \"rate-limit\": RateLimit;\n r2: R2Bucket;\n secret: string;\n \"secrets-store-secret\": SecretsStoreSecret;\n \"send-email\": SendEmail;\n stream: StreamBinding;\n vectorize: VectorizeIndex;\n \"version-metadata\": WorkerVersionMetadata;\n \"vpc-service\": Fetcher;\n \"vpc-network\": Fetcher;\n \"web-search\": WebSearch;\n worker: Fetcher;\n \"worker-loader\": WorkerLoader;\n workflow: Workflow;\n}\ntype InferBindingType<TBinding> = TBinding extends TypedWorkerBinding<infer TConfig, infer TExportName extends string> ? InferMainModule<TConfig> extends infer TModule extends WorkerModule ? TExportName extends keyof TModule ? TModule[TExportName] extends Constructor<any> ? Fetcher<ExtractInstance<TModule[TExportName], Rpc.WorkerEntrypointBranded>> : Fetcher : never : never : TBinding extends TypedDurableObjectBinding<infer TConfig, infer TExportName extends string> ? InferMainModule<TConfig> extends infer TModule extends WorkerModule ? TExportName extends keyof TModule ? DurableObjectNamespace<ExtractInstance<TModule[TExportName], Rpc.DurableObjectBranded>> : never : never : TBinding extends TypedWorkflowBinding<infer TConfig, infer TExportName extends string> ? InferMainModule<TConfig> extends infer TModule extends WorkerModule ? TExportName extends keyof TModule ? ExtractInstance<TModule[TExportName], Rpc.WorkflowEntrypointBranded> extends infer TWorkflow ? TWorkflow extends {\n run(event: {\n payload: infer P;\n }, step: any): any;\n} ? Workflow<P> : Workflow : Workflow : never : never : TBinding extends {\n type: `unsafe:${string}`;\n} ? any : TBinding extends {\n type: infer K extends keyof BindingTypeMap<TBinding>;\n} ? BindingTypeMap<TBinding>[K] : never;\n/**\n * Infer the Worker name from a config.\n *\n * @example\n * ```typescript\n * import { defineWorker } from \"@cloudflare/config\";\n * import type { InferDurableNamespaces, UnwrapConfig } from \"@cloudflare/config\";\n *\n * const config = defineWorker({ name: \"my-worker\", ... });\n *\n * type WorkerConfig = UnwrapConfig<typeof config>;\n * // Inferred as: \"my-worker\"\n * type Name = InferWorkerName<WorkerConfig>;\n * ```\n */\ntype InferWorkerName<TUnwrappedConfig$1> = TUnwrappedConfig$1 extends {\n name: infer TName extends string;\n} ? TName : never;\n/**\n * Infer export names from a config's exports, optionally filtered by type.\n * When TExportType is `string` (default), returns all export names.\n * When TExportType is a specific literal like `\"durable-object\"` or `\"workflow\"`,\n * returns only exports of that type.\n */\ntype InferExportsByType<TUnwrappedConfig$1, TExportType extends string = string> = TUnwrappedConfig$1 extends {\n exports: infer TExports extends Record<string, {\n type: string;\n }>;\n} ? { [K in keyof TExports]: TExports[K] extends {\n type: TExportType;\n} ? K & string : never }[keyof TExports] : never;\n/**\n * Infer `WorkerEntrypoint` export names from a config.\n * Returns named module exports that are not declared as type `\"durable-object\"` or `\"workflow\"` in `exports`.\n * Excludes `\"default\"` since `exportName` should only be provided for named exports.\n */\ntype InferWorkerEntrypointExports<TUnwrappedConfig$1> = Exclude<keyof InferMainModule<TUnwrappedConfig$1> & string, \"default\" | InferExportsByType<TUnwrappedConfig$1, \"durable-object\" | \"workflow\">>;\n/**\n * Unwrap function and promise types to get the underlying config.\n * Use this to normalize a config before passing it to other inference utilities.\n */\ntype UnwrapConfig<TConfig$1> = TConfig$1 extends WorkerDefinition<infer TUnwrappedConfig> ? TUnwrappedConfig : TConfig$1 extends UserConfigExport<infer TUnwrappedConfig> ? TUnwrappedConfig : never;\n/**\n * Infer the `Env` interface type from a Worker config.\n *\n * Transforms a config object's `env` bindings into their\n * corresponding Cloudflare runtime types.\n *\n * @example\n * ```typescript\n * import { defineWorker, bindings } from \"@cloudflare/config\";\n * import type { InferEnv, UnwrapConfig } from \"@cloudflare/config\";\n *\n * const config = defineWorker({\n * env: {\n * MY_JSON: bindings.json({ id: string }),\n * MY_KV: bindings.kv(),\n * },\n * });\n *\n * type WorkerConfig = UnwrapConfig<typeof config>;\n * // Inferred as: { MY_JSON: { id: string }; MY_KV: KVNamespace }\n * export type Env = InferEnv<WorkerConfig>;\n * ```\n */\ntype InferEnv<TUnwrappedConfig$1> = TUnwrappedConfig$1 extends {\n env: infer TEnv extends Record<string, any>;\n} ? { [K in keyof TEnv]: InferBindingType<TEnv[K]> } : never;\n/**\n * Infer the Durable Object namespace names from a Worker config's exports.\n * Returns a union of export names that have `type: \"durable-object\"`.\n *\n * @example\n * ```typescript\n * import { defineWorker } from \"@cloudflare/config\";\n * import type { InferDurableNamespaces, UnwrapConfig } from \"@cloudflare/config\";\n *\n * const config = defineWorker({\n * exports: {\n * MyDurableObject: { type: \"durable-object\", storage: \"sqlite\" },\n * MyWorkflow: { type: \"workflow\", name: \"my-workflow\" },\n * },\n * });\n *\n * type WorkerConfig = UnwrapConfig<typeof config>;\n * // Inferred as: \"MyDurableObject\"\n * type DurableNamespaces = InferDurableNamespaces<WorkerConfig>;\n * ```\n */\ntype InferDurableNamespaces<TUnwrappedConfig$1> = InferExportsByType<TUnwrappedConfig$1, \"durable-object\">;\n/**\n * Infer the main module type from a Worker config's entrypoint.\n * If entrypoint is a module namespace object, returns that type.\n * If entrypoint is a `string` or not present, returns `DefaultModule` as a fallback.\n */\ntype InferMainModule<TUnwrappedConfig$1> = TUnwrappedConfig$1 extends {\n entrypoint: infer TModule extends WorkerModule;\n} ? TModule : DefaultModule;\n//#endregion\nexport { TypedQueueBinding as $, DispatchNamespaceBinding as A, PipelineBinding as B, AiSearchNamespaceBinding as C, Bindings as D, AssetsBinding as E, JsonBinding as F, SecretsStoreSecretBinding as G, R2Binding as H, KvBinding as I, TextBinding as J, SendEmailBinding as K, LogfwdrBinding as L, FlagshipBinding as M, HyperdriveBinding as N, BrowserBinding as O, ImagesBinding$1 as P, TypedPipelineBinding as Q, MediaBinding$1 as R, AiSearchBinding as S, ArtifactsBinding as T, RateLimitBinding as U, QueueBinding as V, SecretBinding as W, TypedDurableObjectBinding as X, TypedAiBinding as Y, TypedKvBinding as Z, ScheduledTrigger as _, ConfigContext as a, VpcNetworkBinding as at, AgentMemoryBinding as b, defineWorker as c, WorkerBinding as ct, DurableObjectExport as d, bindings as dt, TypedWorkerBinding as et, Exports as f, QueueConsumerTrigger as g, FetchTrigger as h, UnwrapConfig as i, VersionMetadataBinding as it, DurableObjectBinding as j, D1Binding as k, resolveWorkerDefinition as l, WorkerLoaderBinding as lt, exports as m, InferEnv as n, UnsafeBinding as nt, TypedWorkerDefinition as o, VpcServiceBinding as ot, WorkflowExport as p, StreamBinding$1 as q, InferMainModule as r, VectorizeBinding as rt, UserConfigExport as s, WebSearchBinding as st, InferDurableNamespaces as t, TypedWorkflowBinding as tt, UserConfig as u, WorkflowBinding as ut, Triggers as v, AnalyticsEngineDatasetBinding as w, AiBinding as x, triggers as y, MtlsCertificateBinding as z };"],"mappings":";;;;;AAAgE;AAO3C;AAIc;AAU2B,KAfzDE,IAAAA,GAkBKG,MAAAA,GAAAA,MAAgB,GAAA,OAAA,GAAA,IAAA,GAlBqBH,IAkBrB,EAAA,GAAA;EAAA,CAAA,GAShBI,EAAAA,MAAAA,CAAAA,EA1BOJ,IA0BE;AAAyB,CAAA;;;UAtBlCC,yBAAAA,CAgCOK;EAFiEF;EAAS,SAAA,EAAA,MAAA;EAAA;EAI3D,MAUtBM,CAAAA,EAAAA,OAAAA;AAA8C;AAGf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AAA,OAAA;IAEFC,IAAAA,CAAAA,EAAAA,MAAAA;IAWAC;AAAkC;AAQ4B;AAIzC;AAKuB;AAGzB;IAQnBO,KAAAA,CAAAA,EAAAA;MAWAC,QAAAA,CAAAA,EAAAA,OAAsB;IAGtBC,CAAAA;IAOAC;AAA8C;;;;;IAI+C,gBAAA,CAAA,EAAA,OAAA;IAI7FG;AAAmB;AAaqB;AAQe;AAIvC;AAakB;IAelCO,eAAgB,CAAA,EAAA,MAAA;EAahBC,CAAAA;EAGAC,WAAAA,CAAAA,EAAAA,OAAAA;AAAgC;;;KEvW9B,oBAAA,GACT,iBACA,QAAQ,yBACD,kBAAkB,iBAAiB,QAAQ;AFAhD5D,iBEEW,oBAAA,CFDK,MAAA,EEEZ,oBFFY,CAAA,EEGlB,oBFHkB"}
@@ -0,0 +1,208 @@
1
+ //#region ../config/dist/public-CqcmI_Th.mjs
2
+ const bindings = {
3
+ agentMemory: (options) => ({
4
+ type: "agent-memory",
5
+ ...options
6
+ }),
7
+ ai: (options) => ({
8
+ type: "ai",
9
+ ...options
10
+ }),
11
+ aiSearch: (options) => ({
12
+ type: "ai-search",
13
+ ...options
14
+ }),
15
+ aiSearchNamespace: (options) => ({
16
+ type: "ai-search-namespace",
17
+ ...options
18
+ }),
19
+ analyticsEngineDataset: (options) => ({
20
+ type: "analytics-engine-dataset",
21
+ ...options
22
+ }),
23
+ artifacts: (options) => ({
24
+ type: "artifacts",
25
+ ...options
26
+ }),
27
+ assets: () => ({ type: "assets" }),
28
+ browser: (options) => ({
29
+ type: "browser",
30
+ ...options
31
+ }),
32
+ d1: (options) => ({
33
+ type: "d1",
34
+ ...options
35
+ }),
36
+ dispatchNamespace: (options) => ({
37
+ type: "dispatch-namespace",
38
+ ...options
39
+ }),
40
+ durableObject: (options) => ({
41
+ type: "durable-object",
42
+ ...options
43
+ }),
44
+ flagship: (options) => ({
45
+ type: "flagship",
46
+ ...options
47
+ }),
48
+ hyperdrive: (options) => ({
49
+ type: "hyperdrive",
50
+ ...options
51
+ }),
52
+ images: (options) => ({
53
+ type: "images",
54
+ ...options
55
+ }),
56
+ json: (value) => ({
57
+ type: "json",
58
+ value
59
+ }),
60
+ kv: (options) => ({
61
+ type: "kv",
62
+ ...options
63
+ }),
64
+ logfwdr: (options) => ({
65
+ type: "logfwdr",
66
+ ...options
67
+ }),
68
+ media: (options) => ({
69
+ type: "media",
70
+ ...options
71
+ }),
72
+ mtlsCertificate: (options) => ({
73
+ type: "mtls-certificate",
74
+ ...options
75
+ }),
76
+ pipeline: (options) => ({
77
+ type: "pipeline",
78
+ ...options
79
+ }),
80
+ queue: (options) => ({
81
+ type: "queue",
82
+ ...options
83
+ }),
84
+ rateLimit: (options) => ({
85
+ type: "rate-limit",
86
+ ...options
87
+ }),
88
+ r2: (options) => ({
89
+ type: "r2",
90
+ ...options
91
+ }),
92
+ secret: () => ({ type: "secret" }),
93
+ secretsStoreSecret: (options) => ({
94
+ type: "secrets-store-secret",
95
+ ...options
96
+ }),
97
+ sendEmail: (options) => ({
98
+ type: "send-email",
99
+ ...options
100
+ }),
101
+ stream: (options) => ({
102
+ type: "stream",
103
+ ...options
104
+ }),
105
+ text: (value) => ({
106
+ type: "text",
107
+ value
108
+ }),
109
+ vectorize: (options) => ({
110
+ type: "vectorize",
111
+ ...options
112
+ }),
113
+ versionMetadata: () => ({ type: "version-metadata" }),
114
+ vpcService: (options) => ({
115
+ type: "vpc-service",
116
+ ...options
117
+ }),
118
+ vpcNetwork: (options) => ({
119
+ type: "vpc-network",
120
+ ...options
121
+ }),
122
+ webSearch: (options) => ({
123
+ type: "web-search",
124
+ ...options
125
+ }),
126
+ worker: (options) => ({
127
+ type: "worker",
128
+ ...options
129
+ }),
130
+ workerLoader: () => ({ type: "worker-loader" })
131
+ };
132
+ /**
133
+ * Triggers builder for configuring event triggers.
134
+ *
135
+ * @example
136
+ * ```typescript
137
+ * import { defineWorker, triggers } from "@cloudflare/config";
138
+ *
139
+ * export default defineWorker({
140
+ * triggers: [
141
+ * triggers.fetch({ pattern: "example.com/*", zone: "example.com" }),
142
+ * triggers.queue({ name: "my-queue" }),
143
+ * triggers.scheduled({ schedule: "0 * * * *" }),
144
+ * triggers.scheduled({ schedule: "30 0 * * *" }),
145
+ * ],
146
+ * });
147
+ * ```
148
+ */
149
+ const triggers = {
150
+ fetch: (options) => ({
151
+ type: "fetch",
152
+ ...options
153
+ }),
154
+ queue: (options) => ({
155
+ type: "queue",
156
+ ...options
157
+ }),
158
+ scheduled: (options) => ({
159
+ type: "scheduled",
160
+ ...options
161
+ })
162
+ };
163
+ /**
164
+ * Exports builder for configuring Worker exports.
165
+ *
166
+ * @example
167
+ * ```typescript
168
+ * import { defineWorker, exports } from "@cloudflare/config";
169
+ *
170
+ * export default defineWorker({
171
+ * exports: {
172
+ * MyDurableObject: exports.durableObject({ storage: "sqlite" }),
173
+ * },
174
+ * });
175
+ * ```
176
+ */
177
+ const exports = { durableObject: (options) => ({
178
+ type: "durable-object",
179
+ ...options
180
+ }) };
181
+ const CONFIG = Symbol.for("@cloudflare/config:worker-config");
182
+ function defineWorker(config) {
183
+ return {
184
+ [CONFIG]: config,
185
+ durableObject(options) {
186
+ return {
187
+ type: "durable-object",
188
+ ...options
189
+ };
190
+ },
191
+ worker(options) {
192
+ return {
193
+ type: "worker",
194
+ ...options
195
+ };
196
+ }
197
+ };
198
+ }
199
+
200
+ //#endregion
201
+ //#region src/experimental-config/wrangler-definition.ts
202
+ function defineWranglerConfig(config) {
203
+ return config;
204
+ }
205
+
206
+ //#endregion
207
+ export { bindings, defineWorker, defineWranglerConfig, exports, triggers };
208
+ //# sourceMappingURL=experimental-config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experimental-config.mjs","names":[],"sources":["../../config/dist/public-CqcmI_Th.mjs","../src/experimental-config/wrangler-definition.ts"],"sourcesContent":["//#region src/bindings.ts\nconst bindings = {\n\tagentMemory: (options) => ({\n\t\ttype: \"agent-memory\",\n\t\t...options\n\t}),\n\tai: (options) => ({\n\t\ttype: \"ai\",\n\t\t...options\n\t}),\n\taiSearch: (options) => ({\n\t\ttype: \"ai-search\",\n\t\t...options\n\t}),\n\taiSearchNamespace: (options) => ({\n\t\ttype: \"ai-search-namespace\",\n\t\t...options\n\t}),\n\tanalyticsEngineDataset: (options) => ({\n\t\ttype: \"analytics-engine-dataset\",\n\t\t...options\n\t}),\n\tartifacts: (options) => ({\n\t\ttype: \"artifacts\",\n\t\t...options\n\t}),\n\tassets: () => ({ type: \"assets\" }),\n\tbrowser: (options) => ({\n\t\ttype: \"browser\",\n\t\t...options\n\t}),\n\td1: (options) => ({\n\t\ttype: \"d1\",\n\t\t...options\n\t}),\n\tdispatchNamespace: (options) => ({\n\t\ttype: \"dispatch-namespace\",\n\t\t...options\n\t}),\n\tdurableObject: (options) => ({\n\t\ttype: \"durable-object\",\n\t\t...options\n\t}),\n\tflagship: (options) => ({\n\t\ttype: \"flagship\",\n\t\t...options\n\t}),\n\thyperdrive: (options) => ({\n\t\ttype: \"hyperdrive\",\n\t\t...options\n\t}),\n\timages: (options) => ({\n\t\ttype: \"images\",\n\t\t...options\n\t}),\n\tjson: (value) => ({\n\t\ttype: \"json\",\n\t\tvalue\n\t}),\n\tkv: (options) => ({\n\t\ttype: \"kv\",\n\t\t...options\n\t}),\n\tlogfwdr: (options) => ({\n\t\ttype: \"logfwdr\",\n\t\t...options\n\t}),\n\tmedia: (options) => ({\n\t\ttype: \"media\",\n\t\t...options\n\t}),\n\tmtlsCertificate: (options) => ({\n\t\ttype: \"mtls-certificate\",\n\t\t...options\n\t}),\n\tpipeline: (options) => ({\n\t\ttype: \"pipeline\",\n\t\t...options\n\t}),\n\tqueue: (options) => ({\n\t\ttype: \"queue\",\n\t\t...options\n\t}),\n\trateLimit: (options) => ({\n\t\ttype: \"rate-limit\",\n\t\t...options\n\t}),\n\tr2: (options) => ({\n\t\ttype: \"r2\",\n\t\t...options\n\t}),\n\tsecret: () => ({ type: \"secret\" }),\n\tsecretsStoreSecret: (options) => ({\n\t\ttype: \"secrets-store-secret\",\n\t\t...options\n\t}),\n\tsendEmail: (options) => ({\n\t\ttype: \"send-email\",\n\t\t...options\n\t}),\n\tstream: (options) => ({\n\t\ttype: \"stream\",\n\t\t...options\n\t}),\n\ttext: (value) => ({\n\t\ttype: \"text\",\n\t\tvalue\n\t}),\n\tvectorize: (options) => ({\n\t\ttype: \"vectorize\",\n\t\t...options\n\t}),\n\tversionMetadata: () => ({ type: \"version-metadata\" }),\n\tvpcService: (options) => ({\n\t\ttype: \"vpc-service\",\n\t\t...options\n\t}),\n\tvpcNetwork: (options) => ({\n\t\ttype: \"vpc-network\",\n\t\t...options\n\t}),\n\twebSearch: (options) => ({\n\t\ttype: \"web-search\",\n\t\t...options\n\t}),\n\tworker: (options) => ({\n\t\ttype: \"worker\",\n\t\t...options\n\t}),\n\tworkerLoader: () => ({ type: \"worker-loader\" })\n};\n\n//#endregion\n//#region src/triggers.ts\n/**\n* Triggers builder for configuring event triggers.\n*\n* @example\n* ```typescript\n* import { defineWorker, triggers } from \"@cloudflare/config\";\n*\n* export default defineWorker({\n* triggers: [\n* triggers.fetch({ pattern: \"example.com/*\", zone: \"example.com\" }),\n* triggers.queue({ name: \"my-queue\" }),\n* triggers.scheduled({ schedule: \"0 * * * *\" }),\n* triggers.scheduled({ schedule: \"30 0 * * *\" }),\n* ],\n* });\n* ```\n*/\nconst triggers = {\n\tfetch: (options) => ({\n\t\ttype: \"fetch\",\n\t\t...options\n\t}),\n\tqueue: (options) => ({\n\t\ttype: \"queue\",\n\t\t...options\n\t}),\n\tscheduled: (options) => ({\n\t\ttype: \"scheduled\",\n\t\t...options\n\t})\n};\n\n//#endregion\n//#region src/exports.ts\n/**\n* Exports builder for configuring Worker exports.\n*\n* @example\n* ```typescript\n* import { defineWorker, exports } from \"@cloudflare/config\";\n*\n* export default defineWorker({\n* exports: {\n* MyDurableObject: exports.durableObject({ storage: \"sqlite\" }),\n* },\n* });\n* ```\n*/\nconst exports = { durableObject: (options) => ({\n\ttype: \"durable-object\",\n\t...options\n}) };\n\n//#endregion\n//#region src/worker-definition.ts\nconst CONFIG = Symbol.for(\"@cloudflare/config:worker-config\");\nfunction defineWorker(config) {\n\treturn {\n\t\t[CONFIG]: config,\n\t\tdurableObject(options) {\n\t\t\treturn {\n\t\t\t\ttype: \"durable-object\",\n\t\t\t\t...options\n\t\t\t};\n\t\t},\n\t\tworker(options) {\n\t\t\treturn {\n\t\t\t\ttype: \"worker\",\n\t\t\t\t...options\n\t\t\t};\n\t\t}\n\t};\n}\nasync function resolveWorkerDefinition(def, ctx) {\n\tconst raw = typeof def === \"object\" && def !== null && CONFIG in def ? def[CONFIG] : def;\n\treturn await (typeof raw === \"function\" ? raw(ctx) : raw);\n}\n\n//#endregion\nexport { bindings as a, triggers as i, resolveWorkerDefinition as n, exports as r, defineWorker as t };","import type { WranglerConfig } from \"./types\";\nimport type { ConfigContext } from \"@cloudflare/config/public\";\n\nexport type WranglerConfigExport =\n\t| WranglerConfig\n\t| Promise<WranglerConfig>\n\t| ((ctx: ConfigContext) => WranglerConfig | Promise<WranglerConfig>);\n\nexport function defineWranglerConfig(\n\tconfig: WranglerConfigExport\n): WranglerConfigExport {\n\treturn config;\n}\n\nexport async function resolveWranglerConfig(\n\tdef: unknown,\n\tctx: ConfigContext\n): Promise<unknown> {\n\tlet raw = def;\n\tif (typeof raw === \"function\") {\n\t\traw = (raw as (ctx: ConfigContext) => unknown)(ctx);\n\t}\n\treturn await raw;\n}\n"],"mappings":";AACA,MAAM,WAAW;CAChB,cAAc,aAAa;EAC1B,MAAM;EACN,GAAG;EACH;CACD,KAAK,aAAa;EACjB,MAAM;EACN,GAAG;EACH;CACD,WAAW,aAAa;EACvB,MAAM;EACN,GAAG;EACH;CACD,oBAAoB,aAAa;EAChC,MAAM;EACN,GAAG;EACH;CACD,yBAAyB,aAAa;EACrC,MAAM;EACN,GAAG;EACH;CACD,YAAY,aAAa;EACxB,MAAM;EACN,GAAG;EACH;CACD,eAAe,EAAE,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