import { r as DexConfig } from "./types.openclaw-Brl_kTLA.js";
import { t as PluginOrigin } from "./plugin-origin.types-CFJ3OkLP.js";
import { t as NormalizedPluginsConfig$1 } from "./config-normalization-shared-5-arMumO.js";

//#region src/plugins/config-activation-shared.d.ts
type PluginActivationSource = "disabled" | "explicit" | "auto" | "default";
type PluginActivationConfigLike = {
  enabled: boolean;
  allow: readonly string[];
  deny: readonly string[];
  slots: {
    memory?: string | null;
    contextEngine?: string | null;
  };
  entries: Record<string, {
    enabled?: boolean;
  } | undefined>;
};
type PluginActivationConfigSourceLike<TRootConfig> = {
  plugins: PluginActivationConfigLike;
  rootConfig?: TRootConfig;
};
//#endregion
//#region src/plugins/config-state.d.ts
type PluginActivationConfigSource = {
  plugins: NormalizedPluginsConfig;
  rootConfig?: DexConfig;
} & PluginActivationConfigSourceLike<DexConfig>;
type NormalizedPluginsConfig = NormalizedPluginsConfig$1;
declare const normalizePluginsConfig: (config?: DexConfig["plugins"]) => NormalizedPluginsConfig;
declare function createPluginActivationSource(params: {
  config?: DexConfig;
  plugins?: NormalizedPluginsConfig;
}): PluginActivationConfigSource;
type EffectiveActivationParams = {
  id: string;
  origin: PluginOrigin;
  config: NormalizedPluginsConfig;
  rootConfig?: DexConfig;
  enabledByDefault?: boolean;
  activationSource?: PluginActivationConfigSource;
};
declare const resolveEffectiveEnableState: (params: EffectiveActivationParams) => {
  enabled: boolean;
  reason?: string;
};
//#endregion
export { PluginActivationSource as a, resolveEffectiveEnableState as i, createPluginActivationSource as n, normalizePluginsConfig as r, PluginActivationConfigSource as t };