/** * retrospective-index — load `.peaks/retrospective/index.json`, parse to * `RetrospectiveEntry[]`, return the index envelope. * * the index, no MD-tree fallback. The migration script (G9) is the only * writer; this loader is read-only. */ export type RetrospectiveType = 'refactor' | 'feature' | 'bugfix' | 'config' | 'docs' | 'chore'; export type RetrospectiveOutcome = 'shipped' | 'blocked' | 'in-flight' | 'cancelled'; export interface RetrospectiveEntry { id: string; sessionId: string; sliceId?: string; type: RetrospectiveType; title: string; summary: string; outcome: RetrospectiveOutcome; keyDecisions: string[]; lessonsLearned: number; artifactPaths: string[]; updatedAt: string; } export interface RetrospectiveIndex { version: 1; updatedAt: string; entries: RetrospectiveEntry[]; } export interface RetrospectiveIndexResult { projectRoot: string; indexPath: string; entries: RetrospectiveEntry[]; totalCount: number; source: 'index.json' | null; warning: string | null; } export declare function loadRetrospectiveIndex(projectRoot: string): RetrospectiveIndexResult;