import * as Effect from "effect/Effect"; import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import { type AppError } from "../app-error/index.js"; import { CodingAgentRepository } from "../agents/index.js"; import { WorkspaceMutations } from "./service-interface.js"; export interface RenderedFileCleanupResult { readonly removedPaths: ReadonlyArray; } export interface RemovedAgentArtifactCleanupResult { readonly removedPaths: ReadonlyArray; readonly preservedPaths: ReadonlyArray; } export interface WorkspaceOwnershipIssue { readonly kind: "hook-ownership-ambiguous" | "managed-file-unowned"; readonly path: string; readonly detail: string; } export declare const hasAxmManagedMarker: (content: string) => boolean; /** Remove AXM-owned skill projections whose package is no longer desired. */ export declare const cleanupStaleManagedSkillDirectories: (args: { readonly expectedSkillNames: ReadonlySet; readonly dryRun?: boolean; }) => Effect.Effect; /** Discover one subagent's AXM-managed files without mutating the workspace. */ export declare const findManagedSubagentFiles: (subagentsDir: string, subagentName: string) => Effect.Effect; /** * Remove AXM-managed artifacts for agents that are no longer configured for a * workspace: rendered skill and subagent files, plus the agent's * managed MCP server entries and hook groups. Only content carrying an * AXM-managed signal is removed; user-authored files and entries are left * untouched. */ export declare const cleanupManagedArtifactsForRemovedAgents: (args: { readonly removedAgentIds: ReadonlySet; readonly dryRun?: boolean; }) => Effect.Effect; /** Inspect ownership proofs without mutating any agent-native artifact. */ export declare const inspectWorkspaceOwnership: () => Effect.Effect, AppError, CodingAgentRepository | FileSystem.FileSystem | Path.Path | WorkspaceMutations>; export declare const cleanupStaleManagedSubagentFiles: (args: { readonly expectedSubagentNames: ReadonlySet; readonly dryRun?: boolean; }) => Effect.Effect; //# sourceMappingURL=rendered-file-cleanup.d.ts.map