import { Logger } from "../logger"; import { Constructor, InternalModuleDeclaration, MedusaContainer } from "./index"; export type ProviderLoaderOptions> = { container: MedusaContainer; options?: TOptions; logger?: Logger; moduleOptions: Record; }; export type ModuleProviderExports = { module?: string; services: Constructor[]; loaders?: ModuleProviderLoaderFunction[]; runMigrations?(options: ProviderLoaderOptions, moduleDeclaration?: any): Promise; revertMigration?(options: ProviderLoaderOptions, moduleDeclaration?: any): Promise; generateMigration?(options: ProviderLoaderOptions, moduleDeclaration?: any): Promise; /** * Explicitly set the the true location of the module resources. * Can be used to re-export the module from a different location and specify its original location. */ discoveryPath?: string; }; export type ModuleProviderLoaderFunction = (options: ProviderLoaderOptions, moduleDeclaration?: InternalModuleDeclaration) => Promise; export type ModuleProvider = { resolve: string | ModuleProviderExports; id?: string; options?: Record; is_default?: boolean; }; //# sourceMappingURL=module-provider.d.ts.map