//#region src/browser/async-context.d.ts /** * Browser-safe fallback for AsyncLocalStorage. * * Uses a simple last-set-wins store. This is correct for browser usage * where CLI execution is single-threaded/sequential. * * Swapped in via browserAlias in tsdown.config.mjs. */ interface ForgeContextData { args: Record; commandChain: string[]; commandIdChain: string[]; providers: Map; providerFactories: Map; handlerPhase: boolean; /** Keys whose factories are currently being resolved — used for cycle detection */ resolving: Set; } declare const contextStorage: { run(store: ForgeContextData, fn: (...args: unknown[]) => T, ...args: unknown[]): T; getStore(): ForgeContextData | undefined; enterWith(store: ForgeContextData | undefined): void; }; //#endregion export { ForgeContextData, contextStorage }; //# sourceMappingURL=async-context.d.mts.map