@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) • 895 B
text/typescript
import { ImageProcessorInstance } from "./types.mjs";
import { Config } from "../../types/config.mjs";
import { AdapterRuntimeContext, EnvironmentVariables } from "../runtime/types.mjs";
//#region src/libs/image-processor/lifecycle.d.ts
/** Resolve the configured image processor and run its init lifecycle hook. */
declare const getInitializedImageProcessor: (config: Config, options?: {
env?: EnvironmentVariables;
runtimeContext?: AdapterRuntimeContext;
}) => Promise<ImageProcessorInstance>;
/** Run an image processor destroy lifecycle hook when one exists. */
declare const destroyImageProcessor: (processor: ImageProcessorInstance | undefined, options: {
config: Config;
env?: EnvironmentVariables;
runtimeContext?: AdapterRuntimeContext;
}) => Promise<void>;
//#endregion
export { destroyImageProcessor, getInitializedImageProcessor };
//# sourceMappingURL=lifecycle.d.mts.map