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