import { type Action, type PlanContext } from "../internals/plan.js"; import type { CanonClassification } from "./classify.js"; /** Repo-relative path of the carved, user-owned project canon. */ export declare const EXTENSION_PATH = "rules/project-canon-extension.md"; /** * Build the `aih adopt` write/probe actions for a brownfield repo (Phase 2). The * design is **non-destructive convergence**: it reuses `bootstrap-ai`'s canon * writers (which regenerate the aih-OWNED files and merge the clean managed block * into each bootloader, backing up to `.aih.bak`), but FIRST carves any human * project extension out of a divergent bootloader into a user-owned * `rules/project-canon-extension.md` — so regenerating the block never deletes it — * and swaps the router for one that points at that file. It also persists the * `.aih-config.json` marker so a re-run reads `already-adopted`. * * It never deletes the repo's legacy hand artifacts (the executor has no delete * seam, and silent removal is unsafe); those are reported by the digest for the * user to retire deliberately. */ export declare function adoptApplyActions(ctx: PlanContext, cls: CanonClassification, contextDir: string): Promise;