import { type CodegraphInitGuardResult } from './codegraph-service.js'; /** Reported by the CLI as `CODEGRAPH_FOREIGN_REMOVAL_REFUSED`. */ export declare class ForeignCodegraphRemovalError extends Error { constructor(message: string); } /** * Remove `/.codegraph` and return the path that was deleted. * Throws `ForeignCodegraphRemovalError` for a link or for a * peaks-loop-managed directory. */ export declare function removeForeignCodegraphDir(projectRoot: string): string; /** * Remove the foreign directory and re-run the init guard, so the caller sees an * ordinary fresh init. Kept next to the removal because the two are one * decision: what `--force` means is "replace it, then continue as if it had * never been foreign". */ export declare function forcePastForeignConflict(projectRoot: string): { removed: string; outcome: CodegraphInitGuardResult; };