/** * MRSF Parser — load and parse MRSF sidecar files (YAML or JSON). */ import type { MrsfDocument } from "./types.js"; import { type LenientParseResult } from "./serialize.js"; export { parseSidecarContent, parseSidecarContentLenient, } from "./serialize.js"; export type { LenientParseResult } from "./serialize.js"; /** * Parse an MRSF sidecar file from disk. */ export declare function parseSidecar(filePath: string): Promise; /** * Lenient parse: attempts to parse a sidecar file from disk without * throwing. On complete failure, returns `{ doc: null, error }`. * On success, returns `{ doc }`. For partially-corrupted YAML (where * the top-level parses but some comments are malformed), attempts to * salvage individual well-formed comments. */ export declare function parseSidecarLenient(filePath: string): Promise; /** * Read a Markdown document from disk and return its lines. * Lines are 1-indexed in the returned array (index 0 is unused). */ export declare function readDocumentLines(filePath: string): Promise; //# sourceMappingURL=parser.d.ts.map