/** * YAML frontmatter parser/serializer for cortex-authored notes. * * Format mirrors what the obsidian adapter already understands — * `--- ... ---` block at the top of the file, followed by a blank * line, followed by markdown body. The adapter reads the same * frontmatter for project/tags/etc. metadata, so cortex-notes flow * through the existing ingest pipeline without special casing. */ export interface NoteFrontmatter { slug: string; title: string; project?: string | undefined; tags?: string[] | undefined; created: string; updated: string; /** Discriminator — distinguishes cortex-notes from generic obsidian docs. */ source: "cortex-notes"; [extra: string]: unknown; } export interface ParsedNote { frontmatter: NoteFrontmatter; body: string; } export declare function parseNote(raw: string): ParsedNote; export declare function serializeNote(fm: NoteFrontmatter, body: string): string; //# sourceMappingURL=frontmatter.d.ts.map