export type MarkdownCheckboxItem = { checked: boolean; marker: string; body: string; lineStart: number; lineEnd: number; }; export type MarkdownDiagnostic = { level: 'error' | 'warning'; code: string; message: string; section?: string; line?: number; expected?: string[]; actual?: string[]; missingSources?: string[]; acceptanceCriterion?: string; acceptanceCriteria?: string[]; evidenceId?: string; proofId?: string; evidenceRef?: string; proofRef?: string; evidenceRefs?: string[]; proofRefs?: string[]; commitHashes?: string[]; citedPrIds?: string[]; status?: string; type?: string; approvalCriterion?: string; approvedDevAc?: string; approvedAcVersion?: string; currentAcVersion?: string; approvedSha?: string; currentSha?: string; approvedEvidence?: string[]; currentEvidenceRefs?: string[]; missingApprovedEvidence?: string[]; missingPrs?: string[]; unchecked?: string[]; prs?: string[]; }; export type MarkdownSection = { level: number; title: string; normalizedTitle: string; body: string; raw?: string; parentIndex: number | null; lineStart: number; lineEnd: number; checkboxItems: MarkdownCheckboxItem[]; }; export type MarkdownDocument = { preamble: string; rawPreamble?: string; sections: MarkdownSection[]; trailingNewline: boolean; }; export type ParsedIssueMarkdown = { document: MarkdownDocument; diagnostics: MarkdownDiagnostic[]; sections: Record; }; export type CanonicalSectionTitle = string; export type IssueMarkdownTemplate = string; export type CanonicalIssueMarkdown = { title?: string; sections: Partial>; trailingNewline?: boolean; }; export declare function parseMarkdownDocument(text: string): MarkdownDocument; export type GrammarSlot = string; export type GrammarPack = { name: string; slotTitles: Record; }; export declare const MARKDOWN_AC_PACK: GrammarPack; export declare const GRAMMAR_PACKS: Record; export declare function resolveGrammarPack(opts?: { extends?: string; slotAliases?: Record; }): GrammarPack; export declare function parseIssueMarkdown(text: string, sectionOrder?: readonly string[], pack?: GrammarPack): ParsedIssueMarkdown; export declare function renderCanonicalIssueMarkdown(issue: CanonicalIssueMarkdown, sectionOrder?: readonly string[]): string; export declare function renderMarkdownDocument(document: MarkdownDocument): string; export declare function canonicalizeIssueMarkdown(text: string, sectionOrder?: readonly string[]): string;