import { type LedgerPrinciple } from '../principle-tree-ledger.js'; import type { TrajectoryDatabase } from '../trajectory.js'; export interface ReflectionContext { principle: LedgerPrinciple; painEvents: Array<{ source: string; score: number; severity: string | null; reason: string | null; createdAt: string; }>; sessionSnapshot: { toolCalls: Array<{ toolName: string; outcome: string; filePath: string | null; errorType: string | null; }>; } | null; } export declare class ReflectionContextCollector { private readonly stateDir; private readonly trajectory; constructor(stateDir: string, trajectory: TrajectoryDatabase); collect(principleId: string): ReflectionContext | null; collectBatch(filter?: { status?: string; }): ReflectionContext[]; private buildContext; private resolvePainEvents; }