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