/** * Cursor Rules Sync Utilities * Shared functions for syncing Cursor .mdc rules and COMMANDS.md * @requirement DRY - Don't Repeat Yourself pattern */ /** * List of .mdc files to sync * @requirement v3.0+ - Consolidated structure (3 files) * Updated: Nov 29, 2025 - Complete consolidation from 5 files to 3 files */ export declare const MDC_FILES: readonly ["000-workflow-core.mdc", "001-state-behaviors.mdc", "002-quality-gates.mdc"]; /** * Get templates directory path * @returns Path to templates/cursor-rules directory */ export declare function getTemplatesDir(): string; /** * Get COMMANDS.md template path * @returns Path to COMMANDS.md.template */ export declare function getCommandsTemplatePath(): string; /** * Replace {{DATE}} placeholder in template content * @param content Template content * @returns Content with {{DATE}} replaced */ export declare function replaceDatePlaceholder(content: string): string; /** * Sync .mdc files from templates to user's .cursor/rules directory * @param projectRoot Project root directory * @param userRulesDir User's .cursor/rules directory * @param options Options for syncing * @returns Summary of sync operation */ export declare function syncMDCFiles(projectRoot: string, userRulesDir: string, options?: { backup?: boolean; onFileSync?: (file: string) => void; onFileBackup?: (file: string) => void; onFileNotFound?: (file: string) => void; }): Promise<{ updated: number; backedUp: number; }>; /** * Sync state-behaviors directory from templates * @param userRulesDir User's .cursor/rules directory * @returns Number of state files synced */ export declare function syncStateBehaviors(userRulesDir: string): Promise; /** * Create COMMANDS.md from template * @param projectRoot Project root directory * @param destPath Destination path for COMMANDS.md * @returns true if created, false if template not found */ export declare function createCommandsMD(projectRoot: string, destPath: string): Promise;