/** * Frontmatter cells. Unlike heading and block edits, which splice byte ranges, * frontmatter is edited by parsing the block into an ordered list of key/value * pairs, applying the operation to that list, and re-serializing the whole * block with `yaml.stringify`. This sidesteps the fiddliness of serializing a * single value in place (block scalars, flow vs. block style, quoting) at the * cost of reformatting the block; the model's entry ranges are still used to * resolve and order entries. Frontmatter values are JSON, never relative * markdown, so nothing here is rebased. */ import { DocumentModel } from "../model.js"; import { FrontmatterInstruction, PatchResult } from "../instructions.js"; /** Apply a frontmatter instruction by regenerating the block from its pairs. */ export declare const patchFrontmatter: (document: string, model: DocumentModel, instruction: FrontmatterInstruction) => PatchResult; //# sourceMappingURL=frontmatter.d.ts.map