import { type TraceContextData } from '@dxos/context'; import type { RemoteSpan, StartSpanOptions, TracingBackend } from './tracing-types'; export declare const BUFFERED_PREFIX = "buffered-"; /** * A {@link TracingBackend} that buffers span operations until a real backend * registers. On {@link drain}, buffered spans are replayed in FIFO order with * parent IDs translated from synthetic `buffered-*` traceparents to real OTEL * IDs, preserving the trace hierarchy. */ export declare class BufferingTracingBackend implements TracingBackend { #private; startSpan(options: StartSpanOptions): RemoteSpan; /** Discard all buffered spans without replaying them. */ clear(): void; /** * Replay all buffered spans into {@link backend}. * * @returns Map from synthetic buffered traceparent to real {@link TraceContextData}, * used by the post-drain translating wrapper to resolve stale buffered IDs * still present on in-flight {@link Context} objects. */ drain(backend: TracingBackend): Map; } //# sourceMappingURL=buffering-backend.d.ts.map