/** * Plugin registry for managing plugins attached to an agent. */ import type { Plugin } from './plugin.js'; import type { LocalAgent } from '../types/agent.js'; /** * Registry for managing plugins attached to an agent. * * Holds pending plugins and initializes them on first use. * Handles duplicate detection, tool registration, and calls each plugin's initAgent method. */ export declare class PluginRegistry { private readonly _plugins; private readonly _pending; constructor(plugins?: Plugin[]); /** * Initialize all pending plugins with the agent. * Safe to call multiple times — only runs once per pending batch. * * @param agent - The agent instance to initialize plugins with */ initialize(agent: LocalAgent): Promise; private _addAndInit; } //# sourceMappingURL=registry.d.ts.map