export interface ParsedFrontmatter { /** 解析后的键值(嵌套 map 值为对象,数组值为 string[]) */ data: Record; /** frontmatter 之后的 Markdown 正文 */ body: string; } /** * 解析含 frontmatter 的 Markdown 文本。 * 无 frontmatter 时返回 `{ data: {}, body: raw }`。 */ export declare function parseFrontmatter(raw: string): ParsedFrontmatter; /** 读取字符串字段(兼容下划线/驼峰命名),缺失返回 '' */ export declare function fmString(data: Record, ...keys: string[]): string; /** 读取字符串数组字段(兼容数组/逗号分隔/行内数组),缺失返回 [] */ export declare function fmStringArray(data: Record, ...keys: string[]): string[]; /** 读取嵌套 map 字段(metadata),缺失返回 undefined */ export declare function fmMap(data: Record, key: string): Record | undefined; //# sourceMappingURL=frontmatter.d.ts.map