import { Link } from "@jackchim/modules-sdk"; import { ConfigModule, IAnalyticsModuleService, IApiKeyModuleService, IAuthModuleService, ICacheService, ICachingModuleService, ICartModuleService, ICurrencyModuleService, ICustomerModuleService, IEventBusModuleService, IFileModuleService, IFulfillmentModuleService, IInventoryService, ILockingModule, INotificationModuleService, IOrderModuleService, IPaymentModuleService, IPricingModuleService, IProductModuleService, IPromotionModuleService, IRegionModuleService, ISalesChannelModuleService, ISettingsModuleService, IStockLocationService, IStoreModuleService, ITaxModuleService, IUserModuleService, IWorkflowEngineService, Logger, ModuleImplementations, RemoteQueryFunction } from "@jackchim/types"; import { ContainerRegistrationKeys, Modules } from "@jackchim/utils"; import { Knex } from "../deps/mikro-orm-knex"; import { AwilixContainer, ResolveOptions } from "../deps/awilix"; declare module "@jackchim/types" { interface ModuleImplementations { /** * @deprecated use {@link ContainerRegistrationKeys.LINK} instead. */ [ContainerRegistrationKeys.REMOTE_LINK]: Link; /** * @since 2.2.0 */ [ContainerRegistrationKeys.LINK]: Link; [ContainerRegistrationKeys.CONFIG_MODULE]: ConfigModule; [ContainerRegistrationKeys.PG_CONNECTION]: Knex; [ContainerRegistrationKeys.REMOTE_QUERY]: RemoteQueryFunction; [ContainerRegistrationKeys.QUERY]: Omit; [ContainerRegistrationKeys.LOGGER]: Logger; [Modules.ANALYTICS]: IAnalyticsModuleService; [Modules.AUTH]: IAuthModuleService; [Modules.CACHE]: ICacheService; [Modules.CART]: ICartModuleService; [Modules.CUSTOMER]: ICustomerModuleService; [Modules.EVENT_BUS]: IEventBusModuleService; [Modules.INVENTORY]: IInventoryService; [Modules.PAYMENT]: IPaymentModuleService; [Modules.PRICING]: IPricingModuleService; [Modules.PRODUCT]: IProductModuleService; [Modules.PROMOTION]: IPromotionModuleService; [Modules.SALES_CHANNEL]: ISalesChannelModuleService; [Modules.TAX]: ITaxModuleService; [Modules.FULFILLMENT]: IFulfillmentModuleService; [Modules.STOCK_LOCATION]: IStockLocationService; [Modules.USER]: IUserModuleService; [Modules.WORKFLOW_ENGINE]: IWorkflowEngineService; [Modules.REGION]: IRegionModuleService; [Modules.ORDER]: IOrderModuleService; [Modules.API_KEY]: IApiKeyModuleService; [Modules.STORE]: IStoreModuleService; [Modules.CURRENCY]: ICurrencyModuleService; [Modules.FILE]: IFileModuleService; [Modules.NOTIFICATION]: INotificationModuleService; [Modules.LOCKING]: ILockingModule; [Modules.SETTINGS]: ISettingsModuleService; [Modules.CACHING]: ICachingModuleService; } } export type MedusaContainer = Omit & { resolve(key: K, resolveOptions?: ResolveOptions): Cradle[K]; resolve(key: string, resolveOptions?: ResolveOptions): T; /** * @ignore */ registerAdd: (name: string, registration: T) => MedusaContainer; /** * @ignore */ createScope: () => MedusaContainer; }; export type ContainerLike = { resolve(key: string): T; }; //# sourceMappingURL=container.d.ts.map