import './runtime'; import * as otel from '@opentelemetry/api'; import type { ActivityInput, ContinueAsNewInput, DisposeInput, GetLogAttributesInput, GetMetricTagsInput, LocalActivityInput, Next, QueryInput, SignalInput, SignalWorkflowInput, StartChildWorkflowExecutionInput, UpdateInput, WorkflowExecuteInput, WorkflowInboundCallsInterceptor, WorkflowInternalsInterceptor, WorkflowOutboundCallsInterceptor, StartNexusOperationInput, StartNexusOperationOutput } from '@temporalio/workflow'; export * from './definitions'; /** * Intercepts calls to run a Workflow * * Wraps the operation in an opentelemetry Span and links it to a parent Span context if one is * provided in the Workflow input headers. * * `@temporalio/workflow` must be provided by host package in order to function. */ export declare class OpenTelemetryInboundInterceptor implements WorkflowInboundCallsInterceptor { protected readonly tracer: otel.Tracer; execute(input: WorkflowExecuteInput, next: Next): Promise; handleSignal(input: SignalInput, next: Next): Promise; handleUpdate(input: UpdateInput, next: Next): Promise; validateUpdate(input: UpdateInput, next: Next): void; handleQuery(input: QueryInput, next: Next): Promise; } /** * Intercepts outbound calls to schedule an Activity * * Wraps the operation in an opentelemetry Span and passes it to the Activity via headers. * * `@temporalio/workflow` must be provided by host package in order to function. */ export declare class OpenTelemetryOutboundInterceptor implements WorkflowOutboundCallsInterceptor { protected readonly tracer: otel.Tracer; scheduleActivity(input: ActivityInput, next: Next): Promise; scheduleLocalActivity(input: LocalActivityInput, next: Next): Promise; startNexusOperation(input: StartNexusOperationInput, next: Next): Promise; startChildWorkflowExecution(input: StartChildWorkflowExecutionInput, next: Next): Promise<[Promise, Promise]>; continueAsNew(input: ContinueAsNewInput, next: Next): Promise; signalWorkflow(input: SignalWorkflowInput, next: Next): Promise; getLogAttributes(input: GetLogAttributesInput, next: Next): Record; getMetricTags(input: GetMetricTagsInput, next: Next): GetMetricTagsInput; } export declare class OpenTelemetryInternalsInterceptor implements WorkflowInternalsInterceptor { dispose(input: DisposeInput, next: Next): Promise; }