/** * GUCDI — PRD parsing (pure). The `menu` agent decomposes a PRD into a story * set; each story anchors back to a PRD initiative. This module turns a PRD * markdown file into the list of anchorable initiatives (heading → GitHub-style * slug) so those anchors are stable, grep-able, and traceable by `trace check`. * * See docs/plans/gucdi-greenfield.md. */ export interface PrdInitiative { /** GitHub-style slug anchor (or an explicit `{#id}`), stable across edits. */ anchor: string; /** Heading text (the initiative title). */ title: string; /** Heading depth (1–6). */ level: number; /** Prose under this heading, up to the next heading of any level. */ body: string; } /** * GitHub heading-anchor slug: lowercase, spaces → hyphens, drop characters that * aren't alphanumeric/hyphen, collapse repeats. Matches GitHub's algorithm * closely enough for stable in-repo anchors. */ export declare function slugify(heading: string): string; /** * Parse a PRD markdown string into its initiatives. Each ATX heading * (`#`…`######`) becomes an initiative. An explicit trailing `{#custom-anchor}` * on the heading overrides the slug. Body text is captured up to the next * heading of any level. Lines inside fenced code blocks are ignored (so a `#` * comment in a code sample isn't mistaken for a heading). */ export declare function parsePrdInitiatives(md: string): PrdInitiative[]; //# sourceMappingURL=prd.d.ts.map