import { INestApplication, INestApplicationContext } from '@nestjs/common'; import { Type } from '@subit/common/lib/shared-types'; import { RuntimeVendureConfig, VendureConfig } from './config/vendure-config'; export declare type VendureBootstrapFunction = (config: VendureConfig) => Promise; /** * @description * Bootstraps the Vendure server. This is the entry point to the application. * * @example * ```TypeScript * import { bootstrap } from '\@subit/core'; * import { config } from './vendure-config'; * * bootstrap(config).catch(err => { * console.log(err); * }); * ``` * @docsCategory * */ export declare function bootstrap(userConfig: Partial): Promise; /** * @description * Bootstraps the Vendure worker. Resolves to an object containing a reference to the underlying * NestJs [standalone application](https://docs.nestjs.com/standalone-applications) as well as * a function used to start listening for and processing jobs in the job queue. * * Read more about the [Vendure Worker]({{< relref "vendure-worker" >}}). * * @example * ```TypeScript * import { bootstrapWorker } from '\@subit/core'; * import { config } from './vendure-config'; * * bootstrapWorker(config) * .then(worker => worker.startJobQueue()) * .catch(err => { * console.log(err); * }); * ``` * @docsCategory worker * */ export declare function bootstrapWorker(userConfig: Partial): Promise<{ app: INestApplicationContext; startJobQueue: () => Promise; }>; /** * Setting the global config must be done prior to loading the AppModule. */ export declare function preBootstrapConfig(userConfig: Partial): Promise>; /** * Returns an array of core entities and any additional entities defined in plugins. */ export declare function getAllEntities(userConfig: Partial): Promise>>;