import type { AgentMessage } from "@caupulican/pi-agent-core"; import type { DemandSignals } from "./reflection-engine.ts"; export declare function boundReflectionSemanticText(text: string, maxChars: number): string; export interface ReflectionTurnAnalysis { trigger: DemandSignals["trigger"]; toolCallCount: number; hadCorrection: boolean; explicitUserMemoryInstruction: boolean; recentTurnText: string; userText: string; assistantText: string; digest: string; } /** * Produce the only transcript projection used by automatic learning and provider turn-sync hooks. * It retains bounded user/assistant semantics plus tool names/counts, never raw tool-result payloads. */ export declare function analyzeReflectionTurn(messages: AgentMessage[], complexTaskThreshold: number): ReflectionTurnAnalysis; export declare function reflectionTriggerPriority(trigger: DemandSignals["trigger"]): number; //# sourceMappingURL=reflection-turn-analysis.d.ts.map