export type FrontmatterFormat = "yaml" | "legacy" | "none"; export interface ParsedFrontmatter { /** Frontmatter fields. Legacy `tags` (comma string) is normalized to an array. */ data: Record; /** Document body after the closing fence. */ body: string; format: FrontmatterFormat; /** Raw frontmatter text, fences excluded. */ raw: string; } export declare function parseFrontmatter(content: string): ParsedFrontmatter; /** Case-insensitive raw field read: canonical OKF keys are lower-case (`appliesto`). */ export declare function lookupCaseInsensitive(data: Record, key: string): unknown; /** * Case-insensitive single-field read, format-agnostic. Arrays (e.g. `tags`) are * returned as a comma-joined string for backward compatibility. */ export declare function getField(content: string, key: string): string | null; /** First present field among `keys`, case-insensitive. */ export declare function getFirstField(content: string, keys: string[]): string | null; /** Serialize fields to a YAML `---` block (trailing newline included). */ export declare function serializeFrontmatter(data: Record): string; //# sourceMappingURL=frontmatter.d.ts.map