import type { HookRegistry, SessionEndContext, SessionStartContext } from '../hooks.js'; import type { TraceSink } from '../trace/index.js'; export interface SessionHookDispatchOptions { signal?: AbortSignal; onError?: (err: Error) => void; traceWriter?: TraceSink; } export declare function dispatchSessionStart(registry: HookRegistry | undefined, context: SessionStartContext, options?: SessionHookDispatchOptions): Promise; export declare function dispatchSessionEnd(registry: HookRegistry | undefined, context: SessionEndContext, options?: SessionHookDispatchOptions): Promise;