/** * #2638 — dual-host instructions with one source. * * `init --dual` makes AGENTS.md the single source for the sections both hosts * share. CLAUDE.md becomes Claude Code's `@AGENTS.md` import plus only the * Claude-specific sections. Two steps: * * 1. writeDualClaudeMd (Claude pass) writes the import form, but only over a * CLAUDE.md that is missing, already ours and unmodified, or --force. * 2. finalizeDualInstructions (after the Codex pass) checks that AGENTS.md * really carries every shared section. If it does not (Codex init failed, * or an older @claude-flow/codex wrote the single-host AGENTS.md), the full * single-host CLAUDE.md is written back, so nothing is lost. */ import type { InitOptions, InitResult } from './types.js'; export declare const DUAL_MIGRATION_HINT: string; /** Claude pass of `init --dual`: write CLAUDE.md as the AGENTS.md import form when it is safe to. */ export declare function writeDualClaudeMd(claudeMdPath: string, options: InitOptions, result: InitResult): void; export interface DualFinalizeOutcome { /** `import`: CLAUDE.md imports AGENTS.md. `restored`: full CLAUDE.md written back. `none`: nothing to do. */ action: 'import' | 'restored' | 'none'; message?: string; } /** * After the Codex pass: keep the import form only when AGENTS.md carries every * shared section verbatim. Never touches a CLAUDE.md this run did not write. */ export declare function finalizeDualInstructions(targetDir: string, claudeResult: InitResult | undefined): DualFinalizeOutcome; //# sourceMappingURL=dual-instructions.d.ts.map