/** * One-way export of crtr-generated host artifacts — the sole writer of * generated slash-command templates to `~/.claude/commands` and * `~/.pi/agent/prompts`. * * crouter no longer exports Agent Skills / SKILL.md bundles. The export pass * still prunes old marker-bearing `crtr-skills` bundles so hosts stop surfacing * pi/Claude native skills after the memory cutover. Markerless files are * user-owned and never removed. * * Triggered per-run by cli.ts (argv-gated, exactly as the old writers were) so * first-run provisioning is preserved. Best-effort: a provisioning fault must * never break an unrelated `crtr` command (the deliberate, pre-existing * behavior of the deleted writers). */ import type { RootDef } from '../command.js'; /** Write `content` to `path` unless a user-customized file is already there. * Rolls forward our own (marker-bearing) versions; skips if identical. Creates * only the leaf dir, never the host root. The single generalization of * bootstrap.ts's two clobber-guards. */ export declare function writeIfOurs(path: string, content: string, markerPrefix: string): void; /** Render and write every built-in export artifact to every present host, while * pruning legacy generated artifacts that should no longer be surfaced. * Best-effort: swallows errors (debug-logged) so a provisioning fault never * breaks an unrelated `crtr` command. Kill switch: `CRTR_NO_EXPORTS=1`. */ export declare function pruneLegacyExports(argv?: string[]): void; /** Write every built-in export artifact to every present host. Split from the * prune above because the prune must run BEFORE the front door boots (stale * artifacts must not reach the prompt) while it needs no command tree, and * bare `crtr` skips the writes outright — so the front door never has to pay * for building the full command tree just to reach a no-op. */ export declare function provisionExports(root: RootDef, argv?: string[]): void;