import type { AgentMessage } from "@earendil-works/pi-agent-core"; import type { AssistantMessage, Context } from "@earendil-works/pi-ai"; import type { Model } from "@earendil-works/pi-ai"; import type { SessionEntry } from "./session-manager.ts"; export declare const DEFAULT_HANDOFF_GOAL = "Continue the previous session from this handoff."; export declare const AUTO_HANDOFF_GOAL = "Continue the previous session without losing its direction. Preserve the big picture: the overall objective, why the work matters, the intended outcome and success criteria, the current approach and key decisions, relevant constraints, exact reference files or artifacts, completed and remaining work, known failures or test results, and the next concrete action. Make clear how the immediate next step contributes to the overall goal."; export declare function entryToMessage(entry: SessionEntry): AgentMessage | undefined; export declare function getHandoffMessages(branch: SessionEntry[]): AgentMessage[]; export declare function buildAiContext(conversationText: string, goal: string): Context; export declare function generateHandoff(model: Model, modelRuntime: { complete(model: Model, context: Context): Promise; }, branch: SessionEntry[], goal?: string): Promise;