import type { Span as AgentSpan, SpanData, Trace as AgentTrace, TracingProcessor } from '@openai/agents-core'; /** * Sweeps spans the agent SDK never called `.end()` on — specifically the * current-agent span on the `next_step_interruption` interrupt path. Called * by the runner in its `finally` block after every `Runner.run` invocation * (the open-spans map is empty on success/throw, non-empty only on dangling- * span paths like interrupt). Also called by the inbound interceptor's * `finally` as a safety net for spans opened outside `runner.run`, e.g., a * bare `withTrace` in the Workflow body. */ export declare function flushOpenSpans(): Promise; export declare function clearOpenSpans(): void; export declare class WorkflowAgentSinkProcessor implements TracingProcessor { onTraceStart(trace: AgentTrace): Promise; onTraceEnd(trace: AgentTrace): Promise; onSpanStart(span: AgentSpan): Promise; onSpanEnd(span: AgentSpan): Promise; shutdown(): Promise; forceFlush(): Promise; }