import { type CreateNodes } from '@nx/devkit'; /** Options to rename the inferred Cloudflare Worker targets. */ export interface CloudflarePluginOptions { /** Name for the inferred `wrangler dev` target. @default 'serve' */ serveTargetName?: string; /** Name for the inferred `wrangler deploy` target. @default 'deploy' */ deployTargetName?: string; /** Name for the inferred `wrangler types` target. @default 'typegen' */ typegenTargetName?: string; /** * Name for the inferred `wrangler versions upload` target. * @default 'version-upload' */ versionUploadTargetName?: string; /** * Name for the inferred `wrangler versions deploy` target. * @default 'version-deploy' */ versionDeployTargetName?: string; /** Name for the inferred `wrangler tail` target. @default 'tail' */ tailTargetName?: string; /** * Name for the inferred D1 migrations target (configurations: apply, create, * list). @default 'd1' */ d1TargetName?: string; /** * Name for the inferred secret-management target (configurations: put, bulk, * list, delete). @default 'secret' */ secretTargetName?: string; /** * Name for the inferred versioned-secret target (configurations: put, bulk, * list, delete) wrapping `wrangler versions secret` for gradual deployments. * @default 'version-secret' */ versionSecretTargetName?: string; } /** * Nx inference plugin. For every `wrangler.{toml,jsonc,json}` that sits beside a * `project.json`/`package.json` and parses, infers the Worker lifecycle targets * (serve, deploy, typegen, version-upload, version-deploy, tail), a secret and * a version-secret target (each with put/bulk/list/delete configurations) for * every Worker, and a d1 * target with apply/create/list configurations when the config declares * `d1_databases` (jsonc/json only; the database is chosen with `--db`). * Inference is intentionally * uncached. Official Nx plugins (@nx/vite, @nx/eslint, @nx/jest) memoize their * createNodes targets in a `workspaceDataDirectory` cache keyed by a project * file + lockfile hash, but the work here is trivial — per config a dir read, * one config read+parse, and building a small static targets object — so a * cache earns only marginal speed while adding staleness risk across plugin * upgrades (no key can capture a change in this code's target-construction * logic). `@naxodev/gonx`'s createNodes is likewise uncached. */ export declare const createNodes: CreateNodes;