/** Helpers for separating openable active agents from terminal history. */ import type { AgentRecord } from "./types.js"; export type AgentHistoryStatus = "completed" | "steered" | "stopped" | "aborted" | "error"; /** Return whether a record status represents a terminal agent run. */ export declare function isTerminalAgentStatus(status: string): status is AgentHistoryStatus; /** Return whether an active record has a live session that can be opened. */ export declare function canOpenActiveAgent(record: AgentRecord): boolean; /** Return whether a terminal record has an in-memory or durable conversation. */ export declare function canOpenAgentHistory(record: AgentRecord, cwd: string | undefined): boolean; /** Split records into openable active and terminal-history buckets. */ export declare function splitAgentRecords(records: readonly AgentRecord[], cwd: string | undefined): { active: AgentRecord[]; history: AgentRecord[]; }; /** Format a bounded, single-line history menu option. */ export declare function formatAgentHistoryOption(record: AgentRecord, now: number): string; /** Build the visible status-section labels for the agents menu. */ export declare function buildAgentStatusMenuEntries(records: readonly AgentRecord[], cwd: string | undefined): string[]; //# sourceMappingURL=agent-history-list.d.ts.map