import type { SessionInfo } from "../../../core/session-manager.ts";
/** A session tree node for hierarchical display */
interface SessionTreeNode {
    session: SessionInfo;
    children: SessionTreeNode[];
}
/** Flattened node for display with tree structure info */
export interface FlatSessionNode {
    session: SessionInfo;
    depth: number;
    isLast: boolean;
    /** For each ancestor level, whether there are more siblings after it */
    ancestorContinues: boolean[];
}
/**
 * Build a tree structure from sessions based on parentSessionPath.
 * Returns root nodes sorted by modified date (descending).
 */
export declare function buildSessionTree(sessions: SessionInfo[]): SessionTreeNode[];
/**
 * Flatten tree into display list with tree structure metadata.
 */
export declare function flattenSessionTree(roots: SessionTreeNode[]): FlatSessionNode[];
export {};
//# sourceMappingURL=session-selector-tree.d.ts.map