/** * Charter Markdown I/O — parse and serialize charter.md files. * * Wraps the existing `parseCharterMarkdown()` from charter-compiler.ts * and adds serialization for round-trip support. * * @module state/io/charter-io */ import { type ParsedCharter } from '../../agents/charter-compiler.js'; export type { ParsedCharter }; /** * Parse charter markdown into a typed structure. * Delegates to the existing `parseCharterMarkdown()`. */ export declare function parseCharter(markdown: string): ParsedCharter; /** * Serialize a ParsedCharter back to markdown. * * Produces the canonical charter.md format: * ``` * # {Name} — {Role} * > {style quote} * ## Identity * ... * ``` */ export declare function serializeCharter(charter: ParsedCharter): string; //# sourceMappingURL=charter-io.d.ts.map