import { SpanContext } from '@opentelemetry/api'; /** * Used to encode SpanContext to binary (toBytes) or decode SpanContext * from binary (fromBytes). Derived from a previous implementation in * opentelemetry-core (see README.md). Supports the main * GrpcCensusPropagator class. */ export declare class BinaryTraceContext { /** * Converts context to the binary format used by OpenCensus. * * @param spanContext - The SpanContext to encode * @returns Encoded context as a Uint8Array */ static toBytes(spanContext: SpanContext): Uint8Array; /** * Converts the binary format used by OpenCensus to a SpanContext * * @param buf - Encoded context as a Uint8Array * @returns Decoded context or null if the incoming binary is invalid */ static fromBytes(buf: Uint8Array): SpanContext | null; }