/** The largest bundle the control plane accepts. Cloudflare's own limit on a Worker is smaller. */ export declare const MAX_BUNDLE_BYTES: number; export interface IPublishWorkerArgs { /** A JSON file: product, function, version, contract, config, verification. Nothing about an image. */ file?: string; connection?: string; /** A bundle that is already built: one ES module that exports a default fetch handler. */ bundle?: string; /** Source to bundle with esbuild first. esbuild must be installed in the project. */ entry?: string; } interface IEsbuild { build(options: Record): Promise<{ outputFiles?: Array<{ contents: Uint8Array; }>; errors?: unknown[]; }>; } /** * Bundles source into the one ES module a Worker is. Node built-ins stay external because the Worker runs them through nodejs_compat, * and the output is deterministic for the same input, so the same source gives the same release. */ export declare function bundleWorker(entry: string, cwd?: string, esbuild?: IEsbuild): Promise; /** * Publishes a Cloudflare Worker release: the bundle goes through the control plane, in memory, into the customer's own Workers KV, and a * release is registered from its digest. The source never leaves this machine; only the bundle does, and it is not kept by Ductape. */ export declare function runDeployWorker(args: IPublishWorkerArgs): Promise; export {};