/**
 * W3C Trace Context `traceparent` parsing and formatting.
 * @see https://www.w3.org/TR/trace-context/#traceparent-header
 */
/** The parts of a W3C `traceparent`. */
export interface TraceparentParts {
    /** Version, currently always "00". */
    version: string;
    /** 32 hex chars. */
    traceId: string;
    /** 16 hex chars. The span this `traceparent` names. */
    spanId: string;
    /** 2 hex chars. Bit 0 is the sampled flag. */
    flags: string;
}
/** Parses a W3C `traceparent`. Values that aren't strings, are malformed, or use all-zero IDs yield `null`. */
export declare function parseTraceparent(value: unknown): TraceparentParts | null;
/** Formats a W3C `traceparent` for a span. */
export declare function formatTraceparent(traceId: string, spanId: string, sampled: boolean): string;
//# sourceMappingURL=w3c.d.ts.map