import { TestFailure } from '../types'; /** * Utility for generating AI-powered suggestions for test failures */ export declare class GenAIUtils { /** * Calls the configured AI provider to get a suggestion for fixing a failed test * * @param prompt - The prompt to send to the AI * @returns AI's suggested fix */ static callGenAISuggestion(prompt: string): Promise; /** * Generates a fix suggestion for a failed test * * @param failure - The test failure information * @param sourceCode - Map of source code files for context * @returns The path to the saved suggestion file */ static generateFixSuggestion(failure: TestFailure, sourceCode: Map): Promise<{ promptPath: string; fixPath: string; } | null>; /** * Truncates a stack trace to a reasonable length * * @param stack - The full stack trace * @returns Truncated stack trace */ private static truncateStackTrace; /** * Sanitizes a filename to be used in a file path * * @param filename - The filename to sanitize * @returns Sanitized filename */ private static sanitizeFilename; }