/** * Markdown Section Parser — extracts structured blocks from markdown files. * * Splits on H2 headings, classifies sub-elements (rules, code blocks, tables, prose), * and detects rule strength (imperative vs advisory). */ export type RuleStrength = 'imperative' | 'advisory' | 'neutral'; export type MarkdownElementType = 'rule' | 'code-block' | 'table-row' | 'table-block' | 'prose'; export interface MarkdownElement { type: MarkdownElementType; content: string; /** For rule elements: detected strength */ strength?: RuleStrength; /** For code-block elements: language tag */ language?: string; /** For code-block elements: full block content (multi-line) */ block?: string; } export interface MarkdownSection { heading: string; elements: MarkdownElement[]; } /** Optional overrides for rule-strength detection patterns. */ export interface StrengthConfig { imperativePatterns?: RegExp[]; advisoryPatterns?: RegExp[]; } /** * Parse a markdown string into structured sections. * * Splits on `## ` (H2) headings. Content before the first H2 becomes a * "preamble" section with heading "". Within each section, sub-elements * are classified as rules, code blocks, table rows, or prose. */ export declare function parseMarkdownSections(input: string, config?: StrengthConfig): MarkdownSection[]; //# sourceMappingURL=markdown-parser.d.ts.map