import { TraceParent } from "../models/trace-parent.model"; /** * Reads W3C Trace Context `traceparent` values (https://www.w3.org/TR/trace-context/). * * The format is `version-traceId-parentId-flags`, all lowercase hex: * `00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01`. * * The 32 hex characters of the trace id are returned as a UUID, the form Pristine * uses for `Trace.id`, so a trace continued from a caller looks like one started here. * Transport-agnostic: HTTP reads it from a header, a queue could read it from a message * attribute. */ export declare class TraceParentParser { private static readonly InvalidVersion; private static readonly ZeroTraceId; private static readonly ZeroParentId; private static readonly SampledFlag; /** * Returns the parsed value, or `undefined` when the value is missing or invalid. The * spec says an invalid `traceparent` must be ignored, so this never throws. * @param value The raw `traceparent` value. */ static parse(value: string | undefined): TraceParent | undefined; /** * `4bf92f3577b34da6a3ce929d0e0e4736` → `4bf92f35-77b3-4da6-a3ce-929d0e0e4736`. */ private static toUuid; }