import type { AgentEvent } from './events.js'; import type { HookDecision, RuntimeHookKind, RuntimeHookMode, RuntimeHooks } from './runtime-hooks.js'; export interface RuntimeHookDispatcherOptions { hooks?: RuntimeHooks; runId: string; agent: string; emit(event: AgentEvent): void | Promise; } /** * Dispatches per-run runtime hooks and lets them inject synthetic run events. */ export declare class RuntimeHookDispatcher { private readonly hooks?; readonly runId: string; readonly agent: string; private readonly emitEvent; constructor(options: RuntimeHookDispatcherOptions); dispatch(kind: RuntimeHookKind, payload: unknown, signal: AbortSignal, mode: Exclude): Promise; }