import { DIContext } from "../../common/index.js"; interface AsyncStore { current: DIContext | undefined; } declare class AsyncContextStorage { private store?; private stack; run(store: AsyncStore, cb: (...args: any[]) => any): any; getStore(): AsyncStore | undefined; } export declare function getAsyncStore(): AsyncContextStorage; export declare function useContextRef(): AsyncStore | undefined; export declare function getContext(initialValue?: DIContext): Context | undefined; export declare function runInContext(ctx: DIContext | undefined, cb: (...args: unknown[]) => Result, injector?: { alterAsync?: (name: string, cb: any) => Promise; }): Promise; export declare function setContext(ctx: DIContext): void; /** * @deprecated */ export declare function bindContext(cb: any): any; export {};