/** * YAML frontmatter → Meta callout (opt-in via --frontmatter-as-callout). * * Parses a leading `---\n…\n---` block as a minimal YAML subset and renders * a blockquote "Meta" callout that lark-hirono's normalize pass later * converts to a Feishu callout. * * Supported value forms: bare string, quoted string, ISO date, flow-style * array (`[a, b, c]`). Block-style arrays and nested maps are rejected * with a clear error — consumers with richer frontmatter should * preprocess it themselves. */ export interface ParsedFrontmatter { /** Document body with the `---…---` block stripped. */ body: string; /** Rendered Meta callout (blockquote) — null when no frontmatter was present. */ callout: string | null; /** Raw key/value pairs in parse order. */ data: Record; } /** * Parse a leading YAML frontmatter block. * * If no frontmatter is present: returns `{ body: md, callout: null, data: {} }`. * If malformed (block-style list, nested map, non-`key: value` line): throws. */ export declare function parseFrontmatter(md: string): ParsedFrontmatter; //# sourceMappingURL=frontmatter.d.ts.map