export type ParsedFrontmatter = Record<string, string>;
export declare function parseFrontmatterBlock(content: string): ParsedFrontmatter;
export interface FrontmatterSplit<T = Record<string, unknown>> {
    frontmatter: T;
    content: string;
}
/**
 * Parse YAML frontmatter from markdown: returns metadata plus body after the closing `---`.
 */
export declare function parseFrontmatter<T = Record<string, unknown>>(content: string): FrontmatterSplit<T>;
/**
 * 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, unknown>): string;
