UNPKG

1.02 kBTypeScriptView Raw
1import { Context } from '../context/types';
2import { 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 */
9export 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 */
15export 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 */
22export 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 */
28export declare function deleteBaggage(context: Context): Context;
29//# sourceMappingURL=context-helpers.d.ts.map
\No newline at end of file