/** * Generates the content and filename for an AI prompt that accompanies * webpack/rspack configuration exports. The prompt helps AI identify issues and * suggest optimizations for the bundler configuration. (Writing the file to * disk is the caller's responsibility.) */ export declare class AiPromptGenerator { /** Filename for the AI prompt written alongside the exported configs. */ static readonly PROMPT_FILENAME = "AI-ANALYSIS-PROMPT.md"; /** * Generate a comprehensive AI analysis prompt based on exported config files. * * Every entry in `exportedFiles` is listed in the prompt. Filenames containing * recognizable markers (dev/development, prod/production, client, server, hmr) * get descriptive labels; anything else is listed without a description. * * @param exportedFiles - Array of exported config file basenames * @param targetDir - Directory where configs were exported (only its base name appears in the prompt) * @param bundler - The bundler label (e.g. "webpack", "rspack", or "webpack and rspack" for mixed-bundler exports) * @returns Markdown-formatted AI prompt */ static generatePrompt(exportedFiles: string[], targetDir: string, bundler: string, options?: { includeReactOnRailsContext?: boolean; }): string; /** * Build the body of the "Configuration Files" section: a bullet per exported * file (with a best-effort descriptive label), plus an HMR troubleshooting * note when an HMR config is present. Returns a placeholder line when nothing * was exported. */ private static buildConfigFilesSection; /** * Static React on Rails reference block. Ends with a trailing blank line so it * can be interpolated directly before the next section without disturbing the * surrounding spacing. */ private static readonly REACT_ON_RAILS_CONTEXT; /** * Build a Markdown bullet for an exported config file, attaching a * descriptive label when the filename contains recognizable markers. * Filenames come from FileWriter.generateFilename * ({bundler}-{buildName|env}-{configType}.{ext}), where build names are * user-defined, so matching is best-effort and unmatched files are still * listed. */ private static describeExportedFile; } //# sourceMappingURL=aiPromptGenerator.d.ts.map