/** * Scaffold Utility Functions * * Utility functions for file operations and content generation. */ import type { CommandTemplate, ScaffoldTarget, FileComparison } from './types.js'; import type { AgentTemplate } from './agent-types.js'; /** * Detect which AI CLI tools are installed */ export declare function detectInstalledTools(): ScaffoldTarget[]; /** * Generate command content for a target format */ export declare function generateCommandContent(template: CommandTemplate, needsFrontmatter: boolean, target: string): string; /** * Generate agent content for a target format */ export declare function generateAgentContent(template: AgentTemplate, needsFrontmatter: boolean): string; /** * Ensure directory exists */ export declare function ensureDirectory(dirPath: string): void; /** * Check if file exists */ export declare function fileExists(filePath: string): boolean; /** * Write content to file */ export declare function writeFile(filePath: string, content: string): void; /** * Get command filename */ export declare function getCommandFilename(commandName: string, extension: string): string; /** * Get agent filename */ export declare function getAgentFilename(name: string): string; /** * Read file content */ export declare function readFile(filePath: string): string | null; /** * Compare existing and new content */ export declare function compareFiles(filePath: string, newContent: string): FileComparison; /** * Generate a simple unified diff between two strings */ export declare function generateDiff(oldContent: string, newContent: string, filename: string): string; //# sourceMappingURL=utils.d.ts.map