/** * Cloudflare Workers deployment for Photon */ export interface CloudflareDeployOptions { photonPath: string; outputDir?: string; devMode?: boolean; dryRun?: boolean; publicUrl?: string; customDomain?: string; routePattern?: string; mcpAuth?: 'jwt' | 'bearer' | 'open'; mcpAudience?: string; /** * Enable Cloudflare Workers Logs in the generated `wrangler.toml`. * When true, every Worker invocation is captured in the CF dashboard * with ~3-day retention. Off by default — Workers Logs is opt-in so * deployments stay minimal until the user explicitly wants observability. */ withLogs?: boolean; } /** * Generate the wrangler.toml binding blocks for a deployment. * * Each bundled photon contributes auto-named bindings derived from its * own usage: the source scanner discovers every literal qualifier the * photon passes to `cf.kv(...)`, `cf.r2(...)`, etc., and * `bindingNameFor` composes the wrangler-legal name (`_kv`, * `_cache_kv`, ...). The same convention drives miniflare seed * names locally and the worker template's runtime resolution, so * bindings always line up across runtimes. * * `protected cfBindings` is now an optional override layer keyed by * qualifier. Authors set it only when they need to point a specific * binding at a pre-existing CF resource (typically a real D1 UUID or * a shared org-wide bucket). The host photon's local override JSON * (`/.data/cf-overrides/.json`) is layered on top so * `photon cf set ...` edits flow into the deployed config without * touching photon source. * * Shared categories (ai/images/browser) emit a single block once per * Worker if any bundled photon either references them in source or * sets the corresponding boolean flag in `protected cfBindings`. */ export declare function renderCfBindingsToml(photons: { name: string; source: string; }[], hostPhotonName: string, hostPhotonDir: string): Promise; export declare function deployToCloudflare(options: CloudflareDeployOptions): Promise; export declare function devCloudflare(options: CloudflareDeployOptions): Promise; //# sourceMappingURL=cloudflare.d.ts.map