import type { SessionStorage } from "./session-storage.js";
export declare function resolveManagedSessionRoot(sessionDir: string, cwd: string): string | undefined;
/**
 * Compute the default session directory for a cwd.
 * Classifies cwd by canonical location so symlink/alias paths resolve to the
 * same home-relative or temp-root directory names as their real targets.
 */
export declare function computeDefaultSessionDir(cwd: string, storage: SessionStorage, sessionsRoot?: string): string;
/**
 * Write a breadcrumb linking the current terminal to a session file.
 * The breadcrumb contains the cwd and session path so --continue can
 * find "this terminal's last session" even when running concurrent instances.
 */
export declare function writeTerminalBreadcrumb(cwd: string, sessionFile: string): void;
export interface TerminalBreadcrumb {
    cwd: string;
    sessionFile: string;
}
/**
 * Read the raw terminal breadcrumb for the current terminal.
 * Returns the recorded cwd + session file (verified to exist) regardless of
 * whether the recorded cwd still matches the current one. Callers decide how
 * to interpret a cwd mismatch (e.g. a moved/renamed worktree).
 */
export declare function readTerminalBreadcrumbEntry(): Promise<TerminalBreadcrumb | null>;
