/** * Markdown parsing utilities using gray-matter for frontmatter extraction. */ export interface ParsedMarkdown> { frontmatter: T; content: string; } /** * Parse a markdown string and extract YAML frontmatter. * Returns both the frontmatter object and the remaining content. */ export declare function parseMarkdown>(markdown: string): ParsedMarkdown; /** * Create a markdown string with YAML frontmatter. */ export declare function createMarkdown>(frontmatter: T, content: string): string; /** * Update frontmatter in an existing markdown string. * Preserves the content, only updates the frontmatter. */ export declare function updateFrontmatter>(markdown: string, updates: Partial): string; /** * Extract a specific section from markdown content by heading. * Returns the content under the heading until the next heading of same or higher level. */ export declare function extractSection(markdown: string, heading: string, level?: number): string | null; /** * Parse a markdown list into an array of strings. * Handles both ordered and unordered lists. */ export declare function parseList(markdown: string): string[]; /** * Parse checkbox items from markdown (- [ ] or - [x]). * Returns array of { text, checked } objects. */ export declare function parseCheckboxes(markdown: string): Array<{ text: string; checked: boolean; }>; /** * Get the current date in YYYY-MM-DD format. */ export declare function getCurrentDate(): string; /** * Convert a string to kebab-case for use in filenames. */ export declare function toKebabCase(str: string): string; /** * Parse a date from various formats into YYYY-MM-DD. */ export declare function normalizeDate(dateStr: string): string;