/** * Vault note I/O — filesystem read / write / list helpers. * * Bridges the pure frontmatter parse/serialize layer (`./frontmatter.ts`) with * the real filesystem: * - `readNote` — readFile + parseFrontmatter, returns a typed VaultNote * - `writeNote` — ensureDir(dirname) + writeFile(serializeNote) * - `listNotes` — glob("**\/*.md", { cwd, absolute: true, nodir: true }) * * All fs access is via `node:fs/promises` (no sync variants). * Uses the existing `glob` dependency (same recipe as `src/discovery/scanners/`). */ import type { VaultNote } from "./types.js"; /** * Read a markdown file from disk and parse its YAML frontmatter. * Returns a fully typed `VaultNote` with `path` set to the given path. */ export declare function readNote(path: string): Promise; /** * Serialize a `VaultNote` and write it to `note.path`. * Parent directories are created automatically (mirrors `writeJson` in utils/fs.ts). */ export declare function writeNote(note: VaultNote): Promise; /** * Return the absolute paths of every `.md` file under `vaultDir`, recursively. * Uses `glob` (existing repo dependency) — no hand-rolled walker. */ export declare function listNotes(vaultDir: string): Promise; //# sourceMappingURL=note-io.d.ts.map