/** * Generate root `AGENTS.md` for Kimi Code / Grok (shared file). * Claude keeps full CLAUDE.md + .claude/memories; this is a condensed twin. */ export interface GenerateAgentsMdOptions { /** Overwrite even if AGENTS.md exists and looks user-customized */ force?: boolean; /** Max Recent Changes entries to mirror from CLAUDE.md */ recentChangesLimit?: number; } export interface GenerateAgentsMdResult { written: boolean; path: string; version: string; hash: string; /** Hash of CLAUDE.md Recent Changes used in this generation */ claudeRcHash: string; skippedReason?: string; } /** * Build AGENTS.md from CLAUDE.md slices + bundled policy pack. * Preserves user body between markers if present and force=false with newer local edits — * Phase 1: overwrite when missing/outdated/force; otherwise skip if file exists and * frontmatter version >= bundled (caller decides outdated via manifest). */ export declare function generateAgentsMd(projectDir: string, opts?: GenerateAgentsMdOptions): GenerateAgentsMdResult; /** Hash of the Recent Changes slice mirrored into AGENTS.md (for drift detection). */ export declare function hashClaudeRecentChanges(claudeMd: string, limit?: number): string; export declare function readClaudeRecentChangesHash(projectDir: string, limit?: number): string | null; /** Bundled policy-pack + generator version for migrate comparisons. */ export declare function bundledAgentsMdVersion(): string;