import type { CoreRoot, IssueColumns, IssueRecord, Preset } from './core/engine.js'; export type ModelPatch = { acId?: string; patch: Record; }; export type ModelEditResult = { body: string; columns: IssueColumns; changed: boolean; }; /** Overlay a typed fragment onto an issue (or one AC) and re-serialize to { body, columns }. */ export declare function applyModelPatch(preset: Preset, record: IssueRecord, edit: ModelPatch): ModelEditResult; /** `fmt`: the preset's own round-trip, parse -> serialize, preserving the `## Waivers` section. */ export declare function canonicalizeBody(preset: Preset, record: IssueRecord): ModelEditResult;