export interface Frontmatter { data: Record; body: string; /** True when the file had a `---` block at all. */ present: boolean; } /** Splits `---\nyaml\n---\nbody`. A missing block yields empty data and the whole text as body. */ export declare function parseFrontmatter(text: string): Frontmatter; export declare function stringifyFrontmatter(data: Record, body: string): string;