import { resumeConfigFor, type ResolvedResumeTarget } from '../../resume-session.js'; import { type ResumeSwapResult, type CompletionWriter } from './shared.js'; import type { SessionRef } from '../../../agent/session-ref.js'; import type { SessionStats } from '../../slash/types.js'; import type { ContextSampler } from '../../context-sampler.js'; import type { GitStatusSampler } from '../../git-status-sampler.js'; import type { StatusLine } from '../../status-line.js'; import type { BackgroundAgentRegistry } from '../../../agent/background-registry.js'; import type { AgentSession } from '../../../agent/session.js'; export interface ResumeSwapDeps { sessionRef: SessionRef; stats: SessionStats; contextSampler: ContextSampler; gitStatusSampler?: GitStatusSampler; statusLine: StatusLine; maxTurns?: number; backgroundRegistry: BackgroundAgentRegistry; completionWriter: CompletionWriter; isInFlight: () => boolean; onSwapped: (target: ResolvedResumeTarget) => void; buildSession: (target: ResolvedResumeTarget) => AgentSession; } export declare function performResumeSwap(target: ResolvedResumeTarget, deps: ResumeSwapDeps): Promise; export { resumeConfigFor };