/** * `chant carve bridge` — the boundary-bridging step of the strangler-fig carve * (#197). Generates the edits to the surviving Terraform (data sources + * rewired references), records the deferred deploy-time inputs, and writes a * reversible handoff runbook. * * Safe by default: writes proposed files to an output directory for review. * `--apply-rewrites` writes the rewritten survivor `.tf` back in place — an * opt-in mutation of your Terraform, never the default. */ import { type BridgePlan } from "../../terraform/bridge.js"; export interface CarveBridgeOptions { from?: string; /** Optional when the output dir holds a single carve manifest from `carve emit`. */ select?: string; statePath?: string; /** Output directory for proposed files (default `/carveout`). */ output?: string; /** Write rewritten survivor `.tf` back in place instead of to the output dir. */ applyRewrites?: boolean; } export interface CarveBridgeResult { ok: boolean; error?: string; plan?: BridgePlan; /** Absolute paths written. */ written?: string[]; /** True if survivor files were edited in place. */ appliedInPlace?: boolean; /** The git-applyable `.patch` carrying the whole survivor edit. */ patchPath?: string; /** The carve state manifest this bridge composed with / recorded into. */ manifestPath?: string; /** True when the target came from the manifest, not --select. */ selectFromManifest?: boolean; } export declare function carveBridge(opts: CarveBridgeOptions): Promise; export declare function formatCarveBridge(result: CarveBridgeResult): string; //# sourceMappingURL=carve-bridge.d.ts.map