export interface ParsedObservation { type: string; title: string | null; subtitle: string | null; facts: string[]; narrative: string | null; concepts: string[]; files_read: string[]; files_modified: string[]; } export interface ParsedSummary { request: string | null; investigated: string | null; learned: string | null; completed: string | null; next_steps: string | null; notes: string | null; } export interface Observation { id: number; tool_name: string; tool_input: string; tool_output: string; created_at_epoch: number; cwd?: string; } export interface SDKSession { id: number; memory_session_id: string | null; project: string; user_prompt: string; last_assistant_message?: string; } export interface ModeConfig { prompts: Record; observation_types: Array<{ id: string; [key: string]: unknown }>; [key: string]: unknown; } export declare const SUMMARY_MODE_MARKER: string; export declare const MAX_CONSECUTIVE_SUMMARY_FAILURES: number; export declare function parseObservations(text: string, correlationId?: string): ParsedObservation[]; export declare function parseSummary(text: string, sessionId?: number, coerceFromObservation?: boolean): ParsedSummary | null; export declare function buildInitPrompt(project: string, sessionId: string, userPrompt: string, mode: ModeConfig): string; export declare function buildObservationPrompt(obs: Observation): string; export declare function buildSummaryPrompt(session: SDKSession, mode: ModeConfig): string; export declare function buildContinuationPrompt(userPrompt: string, promptNumber: number, contentSessionId: string, mode: ModeConfig): string;