context-helpers.d.ts 1022 B

1234567891011121314151617181920212223242526272829
  1. import { Context } from '../context/types';
  2. import { Baggage } from './types';
  3. /**
  4. * Retrieve the current baggage from the given context
  5. *
  6. * @param {Context} Context that manage all context values
  7. * @returns {Baggage} Extracted baggage from the context
  8. */
  9. export declare function getBaggage(context: Context): Baggage | undefined;
  10. /**
  11. * Retrieve the current baggage from the active/current context
  12. *
  13. * @returns {Baggage} Extracted baggage from the context
  14. */
  15. export declare function getActiveBaggage(): Baggage | undefined;
  16. /**
  17. * Store a baggage in the given context
  18. *
  19. * @param {Context} Context that manage all context values
  20. * @param {Baggage} baggage that will be set in the actual context
  21. */
  22. export declare function setBaggage(context: Context, baggage: Baggage): Context;
  23. /**
  24. * Delete the baggage stored in the given context
  25. *
  26. * @param {Context} Context that manage all context values
  27. */
  28. export declare function deleteBaggage(context: Context): Context;
  29. //# sourceMappingURL=context-helpers.d.ts.map