@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
19 lines (18 loc) • 864 B
text/typescript
import { QueueAdapterInstance } from "./types.mjs";
import { Config } from "../../types/config.mjs";
import { AdapterRuntimeContext, EnvironmentVariables } from "../runtime/types.mjs";
//#region src/libs/queue/lifecycle.d.ts
/** Resolve the configured queue adapter and run its init lifecycle hook. */
declare const getInitializedQueueAdapter: (config: Config, options?: {
env?: EnvironmentVariables;
runtimeContext?: AdapterRuntimeContext;
}) => Promise<QueueAdapterInstance>;
/** Run a queue adapter destroy lifecycle hook when one exists. */
declare const destroyQueueAdapter: (adapter: QueueAdapterInstance | undefined, options: {
config: Config;
env?: EnvironmentVariables;
runtimeContext?: AdapterRuntimeContext;
}) => Promise<void>;
//#endregion
export { destroyQueueAdapter, getInitializedQueueAdapter };
//# sourceMappingURL=lifecycle.d.mts.map