import { type RepoYaml } from "../util/config.js"; import { type MergePolicy } from "../analyze/applier.js"; export interface AddRepoOpts { org?: string; role?: RepoYaml["role"]; slug?: string; /** v0.5 §6.5 — apply a previously generated analyze report. */ fromReport?: string; /** v0.5 §6.5 — merge strategy for role-label files landing in user agents. */ mergePolicy?: MergePolicy; /** v0.8.3 §3 — simulate the move; no disk writes. */ dryRun?: boolean; /** v0.8.3 §3 — alias for --dry-run. */ inspect?: boolean; /** v0.8.3 §3 — copy the repo instead of moving (preserves original on disk). */ keepOriginal?: boolean; /** * v0.9.1 — register an external path as a path-reference. No move, no copy. * Workspace stores only a `//repositories/.yaml` file * (not a directory) with the absolute `path` field. The agent's spawn cwd * resolves to this external path via `resolveRepoCwd` (paths.ts). * * When this option is set (or when cwd is a git repo and [input] is * omitted), the legacy move/copy flow is skipped. */ path?: string; } export declare function addRepoCommand(input: string | undefined, opts: AddRepoOpts): Promise;