import type { AgentSession } from "../session/agent-session.js"; import type { EventBus } from "../utils/event-bus.js"; /** Where restored subagents' lifecycle and progress frames go, as a live run's do. */ export interface RestoreOptions { eventBus?: EventBus; subagentEventBus?: EventBus; } /** What `omp --restore` went on with. */ export interface RestoreOutcome { /** The session's own interrupted turn goes on. */ turn: boolean; /** Ids of the subagents that go on with theirs, parents before their children. */ subagents: string[]; } /** * Has `session` go on with what its last process left unfinished: its subagents' * interrupted turns, each as a background job of its parent (registered first, so * a resumed turn waiting on such a job finds it), then its own interrupted turn. */ export declare function restoreSession(session: AgentSession, options?: RestoreOptions): Promise;