export type ParsedFrontmatter = Record; export declare function parseFrontmatterBlock(content: string): ParsedFrontmatter; export interface FrontmatterSplit> { frontmatter: T; content: string; } /** * Parse YAML frontmatter from markdown: returns metadata plus body after the closing `---`. */ export declare function parseFrontmatter>(content: string): FrontmatterSplit; /** * Serialize frontmatter to YAML format (with closing --- only; opening --- included in dump by yaml.dump pattern from original util). */ export declare function serializeFrontmatter(frontmatter: Record): string;