/** * Minimal frontmatter shape used by the freshness CI gates. We keep this * deliberately narrow rather than reusing `KnowledgeEntry` from * `src/types/index.ts` because the gates operate on raw `.md` files in a PR * checkout (no project resolver, no overrides) and need to be tolerant of * partially-populated frontmatter from in-progress drafts. */ export interface ParsedFreshnessEntry { /** Raw frontmatter object (yaml.JSON_SCHEMA — ISO dates stay strings). */ frontmatter: Record; /** Markdown body (everything after the closing `---`). */ body: string; /** Convenience accessor: declared `sources[].url` values (empty array if none). */ sourceUrls: string[]; /** Convenience accessor: declared `volatility` value (or null). */ volatility: 'stable' | 'evolving' | 'fast-moving' | null; } /** * Parse a freshness-relevant entry. Throws only on unrecoverable shape errors * (no frontmatter at all, unclosed `---`); a missing or non-array `sources` * surfaces as an empty `sourceUrls` so gate callers can decide whether to * treat that as a hard fail (link-check) or a noop (over-rewrite). */ export declare function parseEntry(raw: string): ParsedFreshnessEntry; //# sourceMappingURL=parse-entry.d.ts.map