/** * Plugin Loader with Auto-Discovery and Security * * Safely loads and manages plugins from the contents directory */ import type { PluginConfig } from '../../types/plugin'; /** * Discover all plugins from build-time registry (ultra-fast, zero I/O) * * Performance: <2ms (vs ~80ms old runtime discovery) */ export declare function discoverPlugins(): PluginConfig[]; /** * Load a plugin from registry with security checks (ultra-fast, zero I/O) * * Performance: <1ms (vs ~50ms old runtime loading) */ export declare function loadPluginSafely(name: string): PluginConfig | null; /** * Validate plugin configuration */ export declare function validatePlugin(plugin: PluginConfig): { valid: boolean; errors: string[]; }; /** * Register plugin with hook system */ export declare function registerPlugin(plugin: PluginConfig): Promise; /** * Unload a plugin */ export declare function unloadPlugin(name: string): Promise; /** * Get plugin loading statistics (registry-based, instant access) */ export declare function getPluginStats(): { loaded: number; cached: number; loading: number; }; /** * Clear plugin cache */ export declare function clearPluginCache(): void; //# sourceMappingURL=plugin-loader.d.ts.map