import type { AgentEvent, TokenUsage } from '../types.js'; import type { ToolRegistry } from '../tool/registry.js'; export interface MappedAgentEvent { event: string; data: unknown; } export type AgentEventPreset = 'core' | 'sse' | 'bi' | 'codebuddy-like'; export interface AgentEventAdapterOptions { preset?: AgentEventPreset; toolRegistry?: ToolRegistry; resolveToolDisplayName?: (toolName: string, args: Record, registry?: ToolRegistry) => string; includeTimestamps?: boolean; } export interface AgentEventCollectorState { fullContent: string; reasoningText: string; toolCallCount: number; stepCount: number; usage?: TokenUsage; } export declare function createAgentEventCollectorState(): AgentEventCollectorState; export declare function defaultResolveToolDisplayName(toolName: string, _args: Record, registry?: ToolRegistry): string; export declare function mapAgentEvent(event: AgentEvent, state?: AgentEventCollectorState, options?: AgentEventAdapterOptions): MappedAgentEvent | null; export declare function mapAgentEventStream(events: AsyncIterable, options?: AgentEventAdapterOptions): AsyncGenerator; //# sourceMappingURL=event-adapter.d.ts.map