import { AsyncLocalStorage } from 'node:async_hooks'; export interface AgentContext { agentKey: string; name: string; department: string; } export declare const agentContextStorage: AsyncLocalStorage; export type ProgressEvent = { type: 'thinking' | 'step' | 'tool:start' | 'tool:end' | 'tool:error' | 'search:start' | 'search:end' | 'fetch:start' | 'fetch:end' | 'done' | 'subagent:start' | 'subagent:step' | 'subagent:end' | 'specialist:start' | 'specialist:end'; label: string; detail?: string; agent?: string; /** Department name for swarm specialist events (e.g. 'Engineering', 'Growth') */ department?: string; /** Elapsed milliseconds — set on :end events to show timing badges */ durationMs?: number; }; export declare function emitProgress(event: ProgressEvent): void; export declare function withProgressListener(progress: ((event: ProgressEvent) => void) | undefined, run: () => Promise): Promise; //# sourceMappingURL=progress.d.ts.map