export type WranglerConfig = { name: string; main?: string; compatibility_date?: string; vars?: Record; durable_objects?: { bindings?: Array<{ name: string; class_name: string; script_name?: string; }>; }; migrations?: Array<{ tag?: string; new_classes?: string[]; new_sqlite_classes?: string[]; }>; /** Service bindings — the Platinum build adds `__PT_SELF` so a queue can call the Worker back. */ services?: Array<{ binding: string; service: string; environment?: string; }>; [k: string]: unknown; }; export type WorkerManifestInput = { script_name: string; main_module: string; do_classes: string[]; sqlite_classes: string[]; raw_metadata: Record; }; /** wrangler.jsonc is JSON with comments and trailing commas; strip both, outside strings. */ export declare function parseJsonc(text: string): any; /** * The manifest fields for POST /v1/workers/{name}/versions. The module is * always uploaded as `index.js` (what celld names the bundle); `main` in the * config only says where the built file is on disk. */ export declare function manifestFromWrangler(cfg: WranglerConfig): WorkerManifestInput;