import { SessionSnapshot } from "../types.js"; export interface SessionRow { id: string; glyph: string; runner: string; cwd: string; state: string; duration: string; /** 用于上色的语义级别(blessed tag 由调用方决定)。 */ tone: "running" | "idle" | "exited" | "failed" | "stopped"; } /** 从 SessionSnapshot 推导出一行表格数据。状态规则见 plan。 */ export declare function formatSession(snap: SessionSnapshot, now?: number): SessionRow; /** 单一会话列表按开始时间倒序展示,不再按归档状态分组。 */ export declare function sortRows(snaps: SessionSnapshot[]): SessionSnapshot[];