import type { AgentSessionInternalSurface as AgentSession } from "./agent-session-methods.ts"; import type { BranchSummaryEntry } from "./session-manager.ts"; export declare function setSessionName(this: AgentSession, name: string): Promise; /** * Navigate to a different node in the session tree. * Unlike fork() which creates a new session file, this stays in the same file. * * @param targetId The entry ID to navigate to * @param options.summarize Whether user wants to summarize abandoned branch * @param options.customInstructions Custom instructions for summarizer * @param options.replaceInstructions If true, customInstructions replaces the default prompt * @param options.label Label to attach to the branch summary entry * @returns Result with editorText (if user message) and cancelled status */ export declare function navigateTree(this: AgentSession, targetId: string, options?: { summarize?: boolean; customInstructions?: string; replaceInstructions?: boolean; label?: string; }): Promise<{ editorText?: string; cancelled: boolean; aborted?: boolean; summaryEntry?: BranchSummaryEntry; }>; /** * Get all user messages from session for fork selector. */ export declare function getUserMessagesForForking(this: AgentSession): Array<{ entryId: string; text: string; }>; export declare function _extractUserMessageText(this: AgentSession, content: string | Array<{ type: string; text?: string; }>): string; /** * Get session statistics. */ export declare const agentSessionTreeMethods: { setSessionName: typeof setSessionName; navigateTree: typeof navigateTree; getUserMessagesForForking: typeof getUserMessagesForForking; _extractUserMessageText: typeof _extractUserMessageText; }; //# sourceMappingURL=agent-session-tree.d.ts.map