utils.d.ts 604 B

123456789101112131415
  1. import { 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. */
  7. export 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. */
  14. export declare function baggageEntryMetadataFromString(str: string): BaggageEntryMetadata;
  15. //# sourceMappingURL=utils.d.ts.map