import type { SessionManifest } from "../../session/models/session-manifest"; import type { SessionHistoryRecord, SessionRecord } from "../../types/sessions"; import type { SessionBackend } from "./host"; import type { RuntimeHost } from "./runtime-host"; export interface SessionHistoryListOptions { limit?: number; includeManifestFallback?: boolean; hydrate?: boolean; includeSubagents?: boolean; } export declare function manifestToSessionRecord(manifest: SessionManifest): SessionRecord; export declare function hydrateSessionHistory(host: Pick, rows: SessionRecord[]): Promise; export declare function listSessionHistory(host: Pick, options?: SessionHistoryListOptions): Promise; /** * Lists history directly from the persistence backend without constructing a * runtime host. This keeps read-only history commands from initializing runtime * services such as plugins, MCP, or hub transport. */ export declare function listSessionHistoryFromBackend(backend: Pick, options?: SessionHistoryListOptions): Promise;