/** * Remove ai-eng-managed install artifacts before reinstall or uninstall. */ import type { OpenCodeContent } from "@ai-eng-system/core"; import { type InstallManifestEntry } from "./manifest"; import { type InstallScope, type ToolkitHarness } from "./toolkit-path"; import type { CleanFlags } from "./types"; export interface CleanResult { removed: string[]; skipped: string[]; } export declare function extractOpenCodeSkillDirs(content: OpenCodeContent): string[]; export declare function extractOpenCodeToolPaths(content: OpenCodeContent): string[]; export declare function cleanOpenCodeInstall(targetOpenCodeDir: string, content: OpenCodeContent, flags: CleanFlags, manifestEntry?: InstallManifestEntry, agentSkillsDir?: string): CleanResult; export declare function cleanToolkitHarness(harness: ToolkitHarness, scope: InstallScope, projectDir: string, flags: CleanFlags, manifestEntry?: InstallManifestEntry): CleanResult; export declare function runCleaner(flags: CleanFlags, resolveScope: (projectDir: string) => InstallScope): Promise; export type { CleanFlags } from "./types";