import type { Context as ActivityContext } from '@temporalio/activity'; import type { Next, ActivityInboundCallsInterceptor, ActivityExecuteInput, NexusInboundCallsInterceptor, NexusStartOperationInput, NexusStartOperationOutput } from '@temporalio/worker'; export interface OpenAIAgentsTraceInterceptorOptions { /** * Wrap intercepted calls in `temporal:*` custom spans for Temporal-specific * instrumentation. The plugin propagates this to Workflows via the * `__openai_agents_config` header. @default false */ addTemporalSpans?: boolean; } /** * Activity inbound interceptor: restores agent trace context and optionally * wraps execution in a `temporal:executeActivity` custom span. */ export declare class OpenAIAgentsTraceActivityInboundInterceptor implements ActivityInboundCallsInterceptor { private readonly options?; private readonly ctx; constructor(ctx: ActivityContext, options?: OpenAIAgentsTraceInterceptorOptions | undefined); execute(input: ActivityExecuteInput, next: Next): Promise; } /** * Nexus inbound interceptor: restores agent trace context for `startOperation` * so handler-emitted spans nest under the Workflow-side trace tree. * `cancelOperation` is not wrapped. */ export declare class OpenAIAgentsTraceNexusInboundInterceptor implements NexusInboundCallsInterceptor { startOperation(input: NexusStartOperationInput, next: Next): Promise; }