/** * The run's WORKING DOCUMENT (program DES-POWER-MODE §8.3, §9; spike 3): its sections, the HTML a new one starts as, * and the reading of a version back into section texts. Pure. * * The document is a wicked-interactive document of kind `phase-report` (see `store.ts` for the binding). Each section * is ONE element with a `data-wid` anchor and no anchored element inside it, so a section is rewritten with ONE * deterministic `content-edit` (interactive's text-not-markup edit, regenerate.js #247) and never needs a model. */ export declare const SECTION_IDS: readonly ["goal", "approach", "decisions", "constraints", "questions", "next"]; export type SectionId = (typeof SECTION_IDS)[number]; export declare const SECTION_LABELS: Readonly>; /** What an edit of a section does to the run (§9): `next` = one steering note for the next step, `standing` = a * standing steer re-sent before every later step, `record` = kept in the document only. */ export type SteerKind = 'next' | 'standing' | 'record'; export declare const SECTION_STEER: Readonly>; /** The sections a PLUGIN may write (its own generated lines). Everything else is a person's. */ export declare const PLUGIN_SECTIONS: ReadonlySet; /** Most characters one section holds. */ export declare const SECTION_MAX_CHARS = 4000; export declare function isSectionId(v: unknown): v is SectionId; export declare function anchorOf(id: SectionId): string; /** The first version of a run's working document. */ export declare function initialHtml(title: string, texts: Partial>): string; /** * A section's text as one content-edit value. interactive's feedback file is line-based (`- value: …`, trimmed, and * read as inline YAML when it starts with `[` or `{`), so a line break travels as U+2028 LINE SEPARATOR (a mandatory * line break when the document is rendered) and a leading bracket behind a zero-width space. {@link sectionsOf} * undoes both. */ export declare function encodeSectionText(text: string): string; /** The text of each section in a version's HTML (a section the version lacks is absent). Only the anchored element's * own text: the content edit writes text, so there is no markup inside to keep. */ export declare function sectionsOf(html: string): Partial>; /** The sections whose text differs between two versions. */ export declare function changedSections(before: Partial>, after: Partial>): SectionId[]; //# sourceMappingURL=sections.d.ts.map