/** * Registry Installer * * Downloads and installs plugins and components from registries. * Handles checksum verification, dependency resolution, and installation. */ export interface InstallOptions { /** Install scope: global or local */ scope?: 'global' | 'local'; /** Force overwrite existing files */ force?: boolean; /** Skip dependency installation */ noDeps?: boolean; /** Dry run (don't actually install) */ dryRun?: boolean; /** Only install specific component types */ agentsOnly?: boolean; toolsOnly?: boolean; workflowsOnly?: boolean; templatesOnly?: boolean; /** Skip specific component types */ noHooks?: boolean; noCommands?: boolean; } export interface InstallResult { /** Whether installation was successful */ success: boolean; /** Installed plugin/component name */ name: string; /** Installation path */ path?: string; /** Components installed */ installed: { agents?: number; tools?: number; workflows?: number; templates?: number; hooks?: number; commands?: number; }; /** Total bytes installed */ totalSize: number; /** Whether this was a dry run */ dryRun: boolean; /** Any warnings */ warnings?: string[]; /** Error message if failed */ error?: string; } export declare class Installer { private resolver; private manifestResolver; constructor(); /** * Verify SHA-256 checksum */ private verifyChecksum; /** * Download file from URL */ private download; /** * Get installation base directory */ private getInstallBaseDir; /** * Install a plugin item (agent, tool, workflow, template) */ private installItem; /** * Install plugin from resolved reference */ installPlugin(pluginName: string, options?: InstallOptions): Promise; /** * Uninstall plugin */ uninstallPlugin(pluginName: string, scope?: 'global' | 'local', cwd?: string): Promise; } /** * Default installer instance */ export declare const installer: Installer; //# sourceMappingURL=installer.d.ts.map