export declare class FrontmatterError extends Error { readonly source?: unknown; constructor(error: Error, source?: unknown); toString(): string; } export interface FrontmatterOptions { /** Source of the content (alias: source) */ location?: unknown; /** Source of the content (alias for location) */ source?: unknown; /** Fallback frontmatter values */ fallback?: Record; /** Normalize the content */ normalize?: boolean; /** Level of error handling */ level?: "off" | "warn" | "fatal"; } /** * Parse YAML frontmatter from markdown content * Returns { frontmatter, body } where body has frontmatter stripped */ export declare function parseFrontmatter(content: string, options?: FrontmatterOptions): { frontmatter: Record; body: string; };