export declare const TUI_SESSIONS_DIR: string;
export interface StoredMessage {
    role: 'user' | 'assistant' | 'system';
    content: string;
    elapsedMs?: number;
    agentName?: string;
}
export interface StoredSession {
    id: string;
    agent: string | undefined;
    cwd: string;
    createdAt: string;
    updatedAt: string;
    messages: StoredMessage[];
}
/** Pretty timestamp prefix + 6 hex bytes — sortable by mtime AND id. */
export declare function generateSessionId(): string;
export declare function saveSession(s: StoredSession): void;
export declare function loadSession(id: string): StoredSession | null;
export interface SessionMeta {
    id: string;
    agent: string | undefined;
    cwd: string;
    updatedAt: string;
    messages: number;
    bytes: number;
}
/** Latest first. Cheap: only reads filenames + stat; doesn't open JSON.
 *  For richer info we open per-file (used by --list-sessions full path). */
export declare function listSessions(limit?: number, full?: boolean): SessionMeta[];
//# sourceMappingURL=sessions.d.ts.map