import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.mjs'; import 'moleculer'; import 'bson'; import 'zod/v4'; import 'ajv/dist/2019.js'; import 'pino'; import 'pino-pretty'; type Wrapper = { services: Set; client: T; onClose: () => Promise | void; }; /** * Global store mixin to share instances between services on the same broker. * To reuse an instance, it must match both: * - `storeName`, the name of the store (e.g. `mongodb`, `redis`, etc.) * - `key`, the key of the instance (e.g. `mongodb://localhost:27017`) */ declare function GlobalStoreMixin(): PartialCustomServiceSchema>; /** * Return the client from the global store * and add the adapter to the list of adapters. */ getFromStore(storeName: string, key: string): null | T; /** * Service MUST call this when they deregister. * This function will close the client if it's the last adapter. */ removeServiceFromStore(storeName: string, key: string): Promise; /** * Set the client in global store. */ setClientToStore(storeName: string, key: string, client: T, onClose: Wrapper["onClose"]): void; }, unknown>; export { GlobalStoreMixin };