/** * Thread-local context storage backed by AsyncLocalStorage. */ export default class ThreadLocal { private storage; /** * Runs a synchronous or asynchronous function within the specified context store. * Preserves context across all async await operations inside fn. */ run(value: T, fn: () => R): R; /** * Retrieves the current context store. */ get(): T | undefined; /** * Merges values into the current context store. */ set(value: T): void; }