import type { AgentProvider } from "@termfleet/core/internal/agent-session-index.js"; import type { AttentionRequest } from "@termfleet/core/internal/session-lifecycle.js"; import type { ProviderClient } from "@termfleet/core/provider-client.js"; import { type AttentionDerivation, type AttentionLabel, idleSecondsSince, type SessionLiveness } from "@termfleet/core/internal/session-attention.js"; import { providerFromSessionId } from "@termfleet/core/provider-session-page.js"; export { idleSecondsSince }; export type SessionMachine = { instanceId?: string; kind: string; }; export type SessionRow = { agentSessionId: string; attention: AttentionDerivation; attentionRequest?: AttentionRequest; cwd?: string; idleSeconds?: number; live: boolean | "unknown"; machine?: SessionMachine; preview: string; provider: AgentProvider; state: SessionLiveness; terminalId?: string; title: string; updatedAt: string; windowId?: number; }; export declare function buildSessionPage(client: ProviderClient, options: { cursor?: string; includeLiveNotInPage?: boolean; limit?: number; query?: string; }): Promise<{ machine: SessionMachine; nextCursor: string | null; rows: SessionRow[]; total: number; }>; export { providerFromSessionId }; export declare function finalizeSessionRows(rows: SessionRow[], options: { liveOnly: boolean; sort: "attention" | "recent"; }): { counts: Partial>; rows: SessionRow[]; }; export declare const NO_PROVIDER_NOTICE = "no provider running \u2014 liveness unavailable; showing durable sessions"; export declare function buildLocalSessionPage(options: { cursor?: string; home?: string; limit?: number; query?: string; }): Promise<{ nextCursor: string | null; notice: string; rows: SessionRow[]; total: number; }>;