/*! * 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 */ /** * AsyncLocal instance interface * @template T The type of the value to store in the async context */ export interface AsyncLocal { /** * Sets the value in the current async context * @param value The value to set */ setValue(value: T | undefined): void; /** * Gets the current value in the async context * @returns The current value or undefined if not set */ getValue(): T | undefined; } /** * Creates a new AsyncLocal instance * @template T The type of the value to store in the async context * @returns A new AsyncLocal instance */ export declare const createAsyncLocal: () => AsyncLocal; //# sourceMappingURL=async-local.d.ts.map