/** * memory-journal-mcp — Minimal YAML Frontmatter Parser * * Provides a minimal, zero-dependency YAML frontmatter parser for the external * importers (Obsidian, Logseq). Only supports the simple subset of YAML needed * for metadata extraction (scalars and simple arrays). * * This avoids introducing heavy dependencies like js-yaml, adhering to the * established pattern of zero-dependency parsers for better supply chain security. */ /** Structure of extracted YAML frontmatter */ export type FrontmatterData = Record; /** Result of parsing a file with YAML frontmatter */ export interface YamlParseResult { metadata: FrontmatterData; body: string; } /** * Extract and minimally parse YAML frontmatter from a markdown string. * * Handles: * - key: value * - key: [item1, item2] * - key: * - item1 * - item2 * * @param content Full markdown content * @returns Parsed frontmatter and remaining body text */ export declare function parseYamlFrontmatter(content: string): YamlParseResult; //# sourceMappingURL=yaml-parser.d.ts.map