/** * Edit mode wrapper for the Codex `apply_patch` envelope format. * * The mode accepts a single `input` string containing a full * `*** Begin Patch ... *** End Patch` block, parses it, and fans out to * the existing `executePatchSingle` — so all the machinery (plan mode, * LSP writethrough, fs-cache invalidation, diagnostics) is shared with * the `patch` mode. */ import * as z from "zod/v4"; import type { PatchEditEntry } from "./patch"; export declare const applyPatchSchema: z.ZodObject<{ input: z.ZodString; }, z.core.$strip>; export type ApplyPatchParams = z.infer; export type ApplyPatchEntry = PatchEditEntry & { path: string; }; /** * Parse the envelope and lower each hunk to a `PatchEditEntry` so it can * be routed through `executePatchSingle`. */ export declare function expandApplyPatchToEntries(params: ApplyPatchParams): ApplyPatchEntry[]; export declare function expandApplyPatchToPreviewEntries(params: ApplyPatchParams): ApplyPatchEntry[];