import type { AppPlugin, McpServerConfig, AppPluginsData, ScanResult } from "shared/types/index.js";
/**
 * Get the full app-wide plugins data (for Settings UI).
 */
export declare function getAllAppPluginsData(): AppPluginsData;
/**
 * Scan a new directory and add it as a scan root.
 * Returns the scan result for the newly added root.
 */
export declare function addScanRoot(directory: string): ScanResult;
/**
 * Remove a scan root and all its associated plugins.
 */
export declare function removeScanRoot(directory: string): void;
/**
 * Re-scan an existing root, preserving enabled states for previously discovered items.
 */
export declare function rescanRoot(directory: string): ScanResult;
/**
 * Re-scan all registered roots.
 */
export declare function rescanAll(): ScanResult[];
/**
 * Toggle a plugin's enabled state.
 * When disabling, also disables associated MCP servers.
 */
export declare function setPluginEnabled(pluginId: string, enabled: boolean): void;
/**
 * Toggle an MCP server's enabled state.
 * Searches MCP servers embedded in plugins.
 */
export declare function setMcpServerEnabled(serverId: string, enabled: boolean): void;
/**
 * Update an MCP server's environment variables.
 * Searches MCP servers embedded in plugins.
 */
export declare function setMcpServerEnv(serverId: string, env: Record<string, string>): void;
/**
 * Get all enabled app-wide plugins (for inclusion in SDK query options).
 */
export declare function getEnabledAppPlugins(): AppPlugin[];
/**
 * Get all enabled MCP servers from enabled plugins (for inclusion in SDK query options).
 */
export declare function getEnabledMcpServers(): McpServerConfig[];
//# sourceMappingURL=app-plugins.d.ts.map