import type { BotConfig } from "../config/config.js"; import type { PluginRecord } from "./registry.js"; export type NormalizedPluginsConfig = { enabled: boolean; allow: string[]; deny: string[]; loadPaths: string[]; slots: { memory?: string | null; }; entries: Record; }; export declare const BUNDLED_ENABLED_BY_DEFAULT: Set; export declare const normalizePluginsConfig: (config?: BotConfig["plugins"]) => NormalizedPluginsConfig; export declare function applyTestPluginDefaults(cfg: BotConfig, env?: NodeJS.ProcessEnv): BotConfig; export declare function isTestDefaultMemorySlotDisabled(cfg: BotConfig, env?: NodeJS.ProcessEnv): boolean; export declare function resolveEnableState(id: string, origin: PluginRecord["origin"], config: NormalizedPluginsConfig): { enabled: boolean; reason?: string; }; export declare function isBundledChannelEnabledByChannelConfig(cfg: BotConfig | undefined, pluginId: string): boolean; export declare function resolveEffectiveEnableState(params: { id: string; origin: PluginRecord["origin"]; config: NormalizedPluginsConfig; rootConfig?: BotConfig; }): { enabled: boolean; reason?: string; }; export declare function resolveMemorySlotDecision(params: { id: string; kind?: string; slot: string | null | undefined; selectedId: string | null; }): { enabled: boolean; reason?: string; selected?: boolean; };