export interface Frontmatter { /** Parsed YAML object ({} when absent / empty). */ data: Record; /** Post-frontmatter body — a verbatim suffix of the input. */ content: string; /** * v3.10.0-rc.64 (round-3 audit) — true when the frontmatter block was present * and NON-EMPTY but its top-level YAML document is NOT a mapping (a bare scalar * `---\nhello\n---`, a sequence `---\n- a\n---`, or a non-plain object like a * `Date`), so {@link parseFrontmatter} coerced `data` to `{}` to avoid * spreading corrupt data. Callers that WRITE frontmatter back (`frontmatter_set`) * must refuse fail-closed on this signal — otherwise re-serializing `data` would * REPLACE the original scalar/sequence block with a fresh mapping, silently * destroying it. `false` for absent / empty / comment-only / valid-mapping * frontmatter (the legitimate add/edit paths). */ coerced: boolean; } /** * Parse YAML frontmatter from a markdown string (faithful gray-matter port). * Throws on malformed YAML — callers that want a fallback wrap in try/catch (the * same contract gray-matter had). * * @param input - Raw note text. * @returns `{ data, content }` — `content` is a verbatim suffix of `input`. */ export declare function parseFrontmatter(input: string): Frontmatter; /** * Serialize `data` as a YAML frontmatter block prepended to `content` (faithful * gray-matter `stringify` port). Empty `{}` → `content` verbatim (with a trailing * newline, matching gray-matter). * * @param content - Body (no leading `---` delimiter). * @param data - Frontmatter object. */ export declare function stringifyFrontmatter(content: string, data: Record): string; //# sourceMappingURL=frontmatter.d.ts.map