/** * peaks-prd project-scan reader — v2.11.0 (D3 in * `v2-11-rm-rd-techdoc-immutable-handoff`). * * Reads the git-tracked project-level artifacts at * `.peaks/project-scan/{project-scan.md, business-knowledge.md}`. * * Both readers swallow `ENOENT` (return `null`) — peaks-prd's gate * uses the `null` return to decide whether to bootstrap. Other IO * errors propagate (no silent failures). */ import type { BusinessKnowledge, ProjectScan } from './project-scan-types.js'; /** * `.peaks/project-scan/project-scan.md`, project-relative. Exported so the * gate-evidence derivation (`gate-evidence-derivation.ts`) can declare this * path without spelling the literal a fourth time — it was already inlined in * `project-commands.ts`, `workspace/init-command.ts` and here. */ export declare const PROJECT_SCAN_RELATIVE: string; /** Read `.peaks/project-scan/project-scan.md`. Returns `null` when the * file or its parent dir is absent (fresh project). Throws on other * IO failures or malformed YAML. */ export declare function readProjectScan(projectRoot: string): Promise; /** Read `.peaks/project-scan/business-knowledge.md`. Returns `null` * when absent. Throws on other IO failures or malformed YAML. */ export declare function readBusinessKnowledge(projectRoot: string): Promise; /** Read the raw markdown content of a project-scan file. Returns * `null` when absent. Used by bootstrap flows (peaks-prd Step 0.8 * first-run templates). */ export declare function readProjectScanRaw(projectRoot: string): Promise; export declare function readBusinessKnowledgeRaw(projectRoot: string): Promise;