import type { PluginConfig, LoadedPlugin } from "./plugin-types.js"; import type { HooksConfig } from "./hooks.js"; export declare function installPlugin(source: string, targetDir: string, version?: string, force?: boolean): Promise; export declare function discoverAndLoadPlugins(agentDir: string, gitagentDir: string, pluginsConfig: Record | undefined): Promise; export declare function mergeHooksConfigs(base: HooksConfig | null, plugins: LoadedPlugin[]): HooksConfig | null; export interface DiscoveredPlugin { name: string; version: string; description: string; scope: "local" | "global" | "installed"; directory: string; } export declare function listAllPlugins(agentDir: string, gitagentDir: string): Promise;