/**
 * OTEL bridge — connects TraceEmitter span lifecycle to the OtelExporter.
 *
 * When an OtelExporter is active, every span that closes through the
 * TraceEmitter is also pushed to the exporter for real-time streaming to
 * the user's OTEL collector.
 *
 * The bridge is opt-in: attach via `otelRunCompleteHook(exporter)` as a
 * RunCompleteHook, or wrap the store with `createOtelTracingStore` for
 * real-time per-span export.
 */
import type { RunCompleteHook } from './emitter';
import type { OtelExporter } from './otel-export';
import type { TraceStore } from './store';
/**
 * Create a RunCompleteHook that exports all spans from the completed run
 * to the OTEL exporter, then flushes.
 */
export declare function otelRunCompleteHook(exporter: OtelExporter): RunCompleteHook;
/**
 * Create an auto-exporting TraceStore wrapper that intercepts updateSpan
 * calls. When a span gets an endedAt, it's exported immediately. This
 * gives real-time streaming instead of batch-at-end.
 *
 * This is the preferred integration path: wrap the store before
 * constructing the TraceEmitter.
 */
export declare function createOtelTracingStore(inner: TraceStore, exporter: OtelExporter, traceId: string): TraceStore;
//# sourceMappingURL=otel-bridge.d.ts.map