import { AsyncLocalStorage } from "node:async_hooks"; import type { DIContext } from "../../common/domain/DIContext.js"; import { InjectorService } from "../../common/index.js"; export declare function getAsyncStore(): AsyncLocalStorage<{ current: DIContext | undefined; }>; export declare function useContextRef(): { current: DIContext | undefined; } | undefined; export declare function getContext(initialValue?: DIContext): Context | undefined; export declare function runInContext(ctx: DIContext | undefined, cb: (...args: unknown[]) => Result, injector?: InjectorService): Promise; export declare function setContext(ctx: DIContext): void; /** * @deprecated */ export declare function bindContext(cb: any): any;