UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

11 lines 647 B
//#region src/shared/global-singleton.d.ts /** * Process-local singleton helpers for registries, caches, and SDK-visible shared state. * Keys must be symbols so unrelated modules cannot collide on `globalThis` property names. */ /** Resolves a process-local singleton for caches and registries that tolerate helper lookup. */ declare function resolveGlobalSingleton<T>(key: symbol, create: () => T): T; /** Resolves a process-local Map singleton for keyed caches backed by globalThis. */ declare function resolveGlobalMap<TKey, TValue>(key: symbol): Map<TKey, TValue>; //#endregion export { resolveGlobalSingleton as n, resolveGlobalMap as t };