/** * The 2.0 patch engine: `patch(document, instruction)` builds the model, * validates the requested cell of the algebra, checks the `ifMatch` * precondition, resolves the target node, and dispatches to the handler for the * requested operation×scope. Every mutation is expressed as a set of * non-overlapping byte-range edits and applied in one splice, so regions * outside the edit are byte-preserved. * * This module covers the plain-string *write* cells (`replace`/`prepend`/ * `append`) for heading and block targets. Structural cells (move, dissolve, * delete), frontmatter cells, and target creation are layered on in sibling * modules and later increments; until then those cells raise a clear error. */ import { InstructionInput, PatchResult } from "./instructions.js"; /** * Apply a single instruction to `document`, returning the new document and any * warnings. Accepts an {@link InstructionInput}: an omitted `scope` defaults to * `content` before anything inspects the instruction. Throws * {@link PreconditionFailedError} on an `ifMatch` mismatch, * {@link TargetNotFoundError} when the target does not resolve, and * {@link InvalidCellError} for a combination outside the algebra. */ export declare const patch: (document: string, input: InstructionInput) => PatchResult; //# sourceMappingURL=engine.d.ts.map