/** * The structural cells of the algebra — the ones that reshape the tree rather * than just rewrite a span: * * - `replace @ parent` (move): relocate a section's subtree beneath a new * parent, re-levelling every heading in it by the same delta so its internal * nesting is preserved. * - `delete @ marker` (dissolve): remove a heading line. If a same-level * sibling already precedes the target, its orphaned body/children are simply * absorbed by the preceding text; if it is the first at its level, its * children are promoted to its parent and re-levelled up one. * - `delete @ content` / `delete @ markerAndContent`: empty the section's body * (its subtree below the heading line), or remove the whole subtree — heading * line included — plus its trailing gap. * - block deletes: empty a block's text, detach its `^id`, or remove the whole * block plus the blank line that separated it. */ import { DocumentModel, SectionNode, BlockNode } from "../model.js"; import { HeadingInstruction, BlockDeleteInstruction, PatchResult } from "../instructions.js"; /** Handle the structural heading cells (`delete @ *`, `replace @ parent`). */ export declare const structuralHeading: (document: string, model: DocumentModel, instruction: HeadingInstruction, section: SectionNode) => PatchResult; /** * Consume the block's line terminator and, if one follows, a single blank-line * separator, so removing a block does not leave a dangling gap. Shared with * the `within` body-block delete in engine.ts, which follows the same contract. */ export declare const consumeTrailingBlank: (document: string, from: number) => number; /** Handle the block delete cells (`delete @ content|marker|markerAndContent`). */ export declare const deleteBlock: (document: string, _model: DocumentModel, instruction: BlockDeleteInstruction, block: BlockNode) => PatchResult; //# sourceMappingURL=structural.d.ts.map