import type { WorkerBundle } from "./scaffold.js"; /** Configuration for deploying a Worker to Cloudflare. */ export interface CloudflareDeployConfig { /** Cloudflare account ID. */ accountId: string; /** Cloudflare API token with Workers write permission. */ apiToken: string; /** Worker script name — used in the deployment URL. */ scriptName: string; /** Worker bundle from the scaffold generator. */ bundle: WorkerBundle; /** Wrangler compatibility date (default: "2024-01-01"). */ compatibilityDate?: string; } /** Result of a Cloudflare Workers deployment. */ export type CloudflareDeployResult = { ok: true; url: string; scriptName: string; } | { ok: false; error: string; code: string; responseBody?: string; }; /** * Deploy a Worker bundle to Cloudflare Workers via the Workers Script API. * * Uploads the bundle as a multipart form: * - metadata part: JSON with `main_module` and `compatibility_date` * - worker.js part: ES Module Worker entry point * - program.wasm part: compiled WASM binary * * @param config - Deploy configuration including credentials and bundle * @returns Structured deploy result with URL on success, error code on failure */ export declare function deployToCloudflare(config: CloudflareDeployConfig): Promise; //# sourceMappingURL=cloudflare-api.d.ts.map