import type { AgentAdapter } from './adapter.js'; import type { AgentEvent } from './events.js'; import type { RunHandleImpl } from './run-handle-impl.js'; import type { RunOptions } from './run-options.js'; import type { RuntimeHookSetup } from './runtime-hooks.js'; export interface SpawnRuntimeHookBridge { readonly sessionId: string | undefined; readonly setup: RuntimeHookSetup | undefined; enqueue(event: AgentEvent): void; dispatchPrompt(promptText: string): void; abort(): void; awaitIdle(): Promise; finalize(exitReason: string, exitCode: number | null, signal: string | null): Promise; } export declare function createSpawnRuntimeHookBridge(handle: RunHandleImpl, adapter: AgentAdapter, options: RunOptions): Promise;