import type { Lesson } from '../types.js';
/** Write `<dir>/<id>.md` atomically as `---`-fenced frontmatter + body. */
export declare function writeRecord(dir: string, lesson: Lesson): Promise<void>;
/** Remove `<dir>/<id>.md` (explicit deletion). Idempotent — a missing file is not an error. */
export declare function deleteRecord(dir: string, id: string): Promise<void>;
/** Read every `<dir>/*.md` record back into `Lesson[]`. Missing dir → `[]`. */
export declare function readRecords(dir: string): Promise<Lesson[]>;
//# sourceMappingURL=perfile_source.d.ts.map