/** Public shape returned by [`parseFrontmatter`]. */ export type ParsedFrontmatter = { data: Record; body: string; }; /** * Parse a leading YAML-ish frontmatter block off a markdown document. * * **Public SDK surface.** Re-exported from `zfb/content` so consumers can * write their own custom content loaders without re-implementing the * (deliberately minimal) v0 frontmatter parser. The accepted grammar is * documented at the top of this module. * * Handles: * - empty frontmatter (`---\n---\nbody`) → `{ data: {}, body: "body" }` * - file ending exactly with `---` (no trailing newline) → frontmatter * parsed, body is empty. * * Returns `{ data: {}, body: }` unchanged when no frontmatter * fence is present, or when the opening fence has no matching closer. */ export declare function parseFrontmatter(raw: string): ParsedFrontmatter;