/*! * name: async-primitives * version: 1.7.0 * description: A collection of primitive functions for asynchronous operations * author: Kouji Matsui (@kekyo@mi.kekyo.net) * license: MIT * repository.url: https://github.com/kekyo/async-primitives.git * git.commit.hash: 9472fbd5310b92690d84aaafb897429a04c013c5 */ /** * Set a value in the current logical context * @param key The symbol key for the value * @param value The value to store */ export declare const setLogicalContextValue: (key: symbol, value: T | undefined) => void; /** * Get a value from the current logical context * @param key The symbol key for the value * @returns The stored value or undefined if not found */ export declare const getLogicalContextValue: (key: symbol) => T | undefined; /** * Run a handler on a new logical context * @param prefix The prefix for the new logical context * @param handler The handler to run * @returns The result of the handler */ export declare const runOnNewLogicalContext: (prefix: string, handler: () => T) => T; /** * Create a new logical context and switch to it (similar to LogicalContext.SetLogicalContext) * @param idPrefix The prefix for the new logical context id */ export declare const switchToNewLogicalContext: (idPrefix: string) => void; /** * Get the current logical context id * @returns The current logical context id */ export declare const getCurrentLogicalContextId: () => symbol; //# sourceMappingURL=logical-context.d.ts.map