import type { IssueRecord } from './types.js'; /** * Parse a sentinel issue record into an IssueRecord. * * Handles both on-disk formats. `.md` records are frontmatter fenced with * `---`; `.yml`/`.yaml` records are bare YAML with no fence. Previously this * only stripped `.md` from the source_key and only read fenced frontmatter, * so a bare-YAML record imported as a junk row — title falling back to the * filename stem, status defaulting to `open`, and the entire YAML text landing * in `details` — while reporting success. * * source_key is the filename stem with any record extension removed. Stripping * only `.md` would let a `.yml` record carry its extension into the key and * collide with a later correct import under a different key for the same issue. */ export declare function parseIssueMarkdown(filename: string, content: string): IssueRecord; /** Serialize an IssueRecord to sentinel .md (frontmatter + body), markdown-safe (no YAML round-trip of the body). */ export declare function serializeIssueMarkdown(projectKey: string, issue: IssueRecord): string; export interface AdrFields { source_key: string; title: string; status?: string; context?: string; decision?: string; consequences?: string; related_issues: string[]; related_epics: string[]; tags?: string[]; created_at?: string; updated_at?: string; } /** Parse an ADR file → fields, handling new .md (frontmatter + ## sections) AND legacy .yml. */ export declare function parseAdrMarkdown(filename: string, content: string): AdrFields; //# sourceMappingURL=markdown.d.ts.map