import { FactoryProvider, ModuleMetadata, Provider, Type } from '@nestjs/common'; import { BullRootModuleOptions } from './bull-module-options.interface'; /** * @publicApi */ export interface SharedBullConfigurationFactory { createSharedConfiguration(): Promise | BullRootModuleOptions; } /** * @publicApi */ export interface SharedBullAsyncConfiguration extends Pick { /** * Existing Provider to be used. */ useExisting?: Type; /** * Type (class name) of provider (instance to be registered and injected). */ useClass?: Type; /** * Factory function that returns an instance of the provider to be injected. */ useFactory?: (...args: any[]) => Promise | BullRootModuleOptions; /** * Optional list of providers to be injected into the context of the Factory function. */ inject?: FactoryProvider['inject']; /** * Extra providers to be registered in the module context. */ extraProviders?: Provider[]; } //# sourceMappingURL=shared-bull-config.interface.d.ts.map