export declare function readRecentLessons(cwd: string, totemDir: string): string;
/**
 * Derive a filesystem-safe slug from the git branch name.
 * Falls back to 'session' for main, master, or detached HEAD.
 */
export declare function slugFromBranch(branch: string): string;
/**
 * Build the journal file path: .totem/journal/YYYY-MM-DD-<slug>.md
 * If --out is specified, use that path instead.
 */
export declare function resolveJournalPath(cwd: string, totemDir: string, branch: string, outPath?: string): string;
/**
 * Build the structured journal scaffold with human-editable sections
 * at the top and deterministic git state at the bottom.
 */
export declare function buildJournalScaffold(branch: string, status: string, diffStat: string, recentCommits: string, lessons: string): string;
/**
 * Open a file in the user's editor. Uses $VISUAL, then $EDITOR, then vi.
 * Returns true if the editor exited successfully.
 */
export declare function openInEditor(filePath: string): Promise<boolean>;
export interface HandoffOptions {
    stdout?: boolean;
    lite?: boolean;
    out?: string;
}
export declare function handoffCommand(options: HandoffOptions): Promise<void>;
//# sourceMappingURL=handoff.d.ts.map