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 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;