import type { AgentEvent } from "../events/agent-events.js"; import { type TranscriptRequests, type TranscriptPatch, type TranscriptRow, type TranscriptTool } from "../events/transcript.js"; export type TurnEnding = "settled" | "stopped"; export declare const COMPACTED_NOTICE = "Context compacted to free up space."; export declare const compactedRow: () => TranscriptRow; export declare const userRow: (text: string, sentAt: number, attachments: readonly string[], messageId?: string) => TranscriptRow; export declare class TranscriptFold { private readonly now?; readonly rows: TranscriptRow[]; readonly steerRows: number[]; private steeredIn; private bubble; private readonly cards; private readonly placed; private readonly unplaced; private readonly parked; private opener; private unrun; constructor(opening: readonly TranscriptRow[], now?: (() => number) | undefined); apply(event: AgentEvent): TranscriptPatch[]; private showInline; private steered; note(row: TranscriptRow): TranscriptPatch[]; get ranNothing(): boolean; turnedAway(event: AgentEvent): boolean; private retract; private withdrawRenewal; finish(ending: TurnEnding): TranscriptPatch[]; private applyChild; private subagentBorn; private subagentMoved; private cardOfSubagent; private place; private claimById; private claimByResult; private open; private closeBubble; private pushRow; private park; private patchParked; private patchCard; private synced; private stampOpener; private replace; } export declare const foldTurn: (opening: readonly TranscriptRow[], events: readonly AgentEvent[], ending?: TurnEnding) => TranscriptRow[]; export type RowPatch = Exclude; export declare const patchedRow: (row: R, patch: RowPatch) => R | TranscriptRow; export declare const applyTranscriptPatch: (rows: readonly TranscriptRow[], patch: TranscriptPatch) => TranscriptRow[]; export declare const mapTool: (tools: readonly TranscriptTool[], id: string, fn: (tool: TranscriptTool) => TranscriptTool) => readonly TranscriptTool[]; export declare const cardFieldsOf: (row: TranscriptRow) => TranscriptRequests; //# sourceMappingURL=transcript-fold.d.ts.map