UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

21 lines (20 loc) 964 B
import { Config } from "../../types/config.mjs"; import { AdapterLifecyclePurpose, AdapterRuntimeContext, EnvironmentVariables } from "../runtime/types.mjs"; import { EmailAdapterInstance } from "./types.mjs"; //#region src/libs/email/lifecycle.d.ts /** Resolve the configured email adapter and run its init lifecycle hook. */ declare const getInitializedEmailAdapter: (config: Config, options?: { env?: EnvironmentVariables; runtimeContext?: AdapterRuntimeContext; purpose?: AdapterLifecyclePurpose; }) => Promise<EmailAdapterInstance>; /** Run an email adapter destroy lifecycle hook when one exists. */ declare const destroyEmailAdapter: (adapter: EmailAdapterInstance | undefined, options: { config: Config; env?: EnvironmentVariables; runtimeContext?: AdapterRuntimeContext; purpose?: AdapterLifecyclePurpose; }) => Promise<void>; //#endregion export { destroyEmailAdapter, getInitializedEmailAdapter }; //# sourceMappingURL=lifecycle.d.mts.map