/** * A flow's body: one `## ` section per `agent` node, and nothing else. * * Text no turn reads is text its author believes a model saw, so text before * the first section is refused, and so are an empty section and one written * twice. `###` headings are prose inside a section, and a `##` inside a fenced * code block is prose too: a section may show the Markdown it asks for. */ /** One section, and where it failed to be one. */ export type SectionProblem = { readonly code: "body-preamble" | "section-empty" | "section-duplicate"; readonly at: string; readonly message: string; }; /** The sections of a body, by id, in the order written, and what was refused. */ export type Sections = { readonly sections: ReadonlyMap; readonly problems: readonly SectionProblem[]; }; /** Cuts `body` into its sections. */ export declare function readSections(body: string): Sections; //# sourceMappingURL=sections.d.ts.map