/** * YAML frontmatter parser utilities */ export interface ParsedMarkdown> { content: string; metadata: T; raw: string; } export declare class YamlParseError extends Error { readonly filePath?: string | undefined; readonly cause?: Error | undefined; constructor(message: string, filePath?: string | undefined, cause?: Error | undefined); } /** * Parse markdown file with YAML frontmatter */ export declare function parseMarkdownWithFrontmatter>(content: string, filePath?: string): ParsedMarkdown; /** * Parse standalone YAML content */ export declare function parseYamlContent>(content: string, filePath?: string): T; /** * Validate that required fields exist in metadata */ export declare function validateRequiredFields>(metadata: T, requiredFields: Array, filePath?: string): void; /** * Extract frontmatter section from markdown */ export declare function extractFrontmatter(content: string): null | string; /** * Check if content has frontmatter */ export declare function hasFrontmatter(content: string): boolean; /** * Stringify object to YAML format */ export declare function stringifyYaml(data: T): string; //# sourceMappingURL=yaml-parser.d.ts.map