/**
 * Read the per-process Actuate CMS config that `handleActuateAPI()` stashed
 * on `globalThis`. Returns `undefined` when no config has been registered
 * yet (e.g. during early test setup or when the API handler has never been
 * invoked).
 *
 * **Why a helper instead of reading `globalThis.__actuateConfig` directly?**
 * - Centralizes the unsafe cast so we never sprinkle `as any` across the
 *   codebase. If the storage strategy ever moves off `globalThis` (issue M8
 *   from the engineering audit), only this file changes.
 * - Gives every caller the same typed handle, which makes mocking in tests
 *   straightforward (set the global once, all readers see it).
 *
 * **Mutability warning:** the returned object is the *same reference* the
 * platform handler holds. Callers must not mutate it. For mutations (e.g.
 * a plugin registering a new collection at init time), use the platform's
 * own plugin lifecycle — not this getter.
 */
export function getActuateConfig() {
    return globalThis.__actuateConfig;
}
/**
 * Register the running config on `globalThis`. Only the platform-level API
 * handler should call this; plugins and feature code should read the config
 * via `getActuateConfig()` instead.
 */
export function setActuateConfig(config) {
    ;
    globalThis.__actuateConfig =
        config;
}
/**
 * Read the cms-core version that was stamped onto `globalThis` at handler
 * init. Used by `/api/cms/health` and the `/updates/check` endpoint.
 */
export function getActuateCoreVersion() {
    return globalThis.__actuateCoreVersion;
}
export function setActuateCoreVersion(version) {
    ;
    globalThis.__actuateCoreVersion = version;
}
//# sourceMappingURL=runtime.js.map