UNPKG

604 BTypeScriptView Raw
1import { Baggage, BaggageEntry, BaggageEntryMetadata } from './types';
2/**
3 * Create a new Baggage with optional entries
4 *
5 * @param entries An array of baggage entries the new baggage should contain
6 */
7export declare function createBaggage(entries?: Record<string, BaggageEntry>): Baggage;
8/**
9 * Create a serializable BaggageEntryMetadata object from a string.
10 *
11 * @param str string metadata. Format is currently not defined by the spec and has no special meaning.
12 *
13 */
14export declare function baggageEntryMetadataFromString(str: string): BaggageEntryMetadata;
15//# sourceMappingURL=utils.d.ts.map
\No newline at end of file