/** * Branch summarization helpers — ADR 0010 D3. */ import type { AgentMessage, UserMessage } from '../llm/types/agent-message.js'; import type { AgentMessageRow } from './agent-db-models.js'; export declare const BRANCH_SUMMARY_PREFIX = "[Alternate branch summary]\n"; /** Rows abandoned when switching active_leaf from oldLeaf to newLeaf. */ export declare function collectAbandonedPathRows(allRows: AgentMessageRow[], oldLeafId: number | null | undefined, newLeafId: number): AgentMessageRow[]; export declare function abandonedRowsToMessages(rows: AgentMessageRow[]): AgentMessage[]; export declare function branchSummaryAsUserMessage(summary: string, createdAt?: number): UserMessage; //# sourceMappingURL=branch-summarization.d.ts.map