export interface FrontmatterSplit { /** YAML text between the opening and closing `---` fences. */ yaml: string; /** Markdown body following the closing fence. */ body: string; /** 1-based line number of the opening `---` fence. */ fenceStartLine: number; /** 1-based line number of the first YAML line inside the fences. */ yamlStartLine: number; /** 1-based line number of the first body line after the closing fence. */ bodyStartLine: number; } export declare class FrontmatterError extends Error { readonly line: number | undefined; constructor(message: string, line?: number); } /** * Split a markdown document into YAML frontmatter and body. * * Strict: the document must begin with `---` (optionally preceded by blank lines) * and a matching closing `---` must exist. Throws FrontmatterError otherwise. * * Line numbers are 1-based and absolute to the input source so callers can map * downstream errors back to the original file. */ export declare function splitFrontmatter(source: string): FrontmatterSplit; //# sourceMappingURL=frontmatter.d.ts.map