import type { AbortGraph } from '../abort-graph.js'; import type { OutputEvent } from '../types/session-types.js'; import type { SubagentHandle, SubagentHandleImpl } from './handle.js'; import type { SubagentTrace, SubagentStatus } from './result.js'; export interface ForkTerminalDeps { id: string; stopOccupancyHeartbeat: () => void; getOutputEventSink: () => ((event: OutputEvent) => void) | undefined; activeMap: Map; abortGraph: AbortGraph; logWriter: { close(): void; } | undefined; completedCache: { recordHandle(id: string, handle: SubagentHandle, status: SubagentStatus, trace: SubagentTrace, stopReason: string | undefined): void; }; } export declare function makeForkTerminalHook(deps: ForkTerminalDeps, ref: { current: SubagentHandleImpl | undefined; }): () => void;